diff options
author | Tina Müller <cpan2@tinita.de> | 2020-05-29 23:07:16 +0200 |
---|---|---|
committer | Ingy döt Net <ingy@ingy.net> | 2020-06-22 10:21:14 -0700 |
commit | acd6f6f014c25e46363e718381e0b35205df2d83 (patch) | |
tree | 59c59fd0ed36780185320f9748ea3e6054887297 /.github | |
parent | 2c891fc7a770e8ba2fec34fc6b545c672beb37e6 (diff) | |
download | libyaml-git-acd6f6f014c25e46363e718381e0b35205df2d83.tar.gz |
Add workflow for creating release tarballsrelease/test
Also minor cleanup of .github/workflows/main.yml
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/dist.yaml | 28 | ||||
-rw-r--r-- | .github/workflows/main.yml | 17 |
2 files changed, 34 insertions, 11 deletions
diff --git a/.github/workflows/dist.yaml b/.github/workflows/dist.yaml new file mode 100644 index 0000000..c7ce142 --- /dev/null +++ b/.github/workflows/dist.yaml @@ -0,0 +1,28 @@ +name: dist + +on: + push: + branches: [ release/* ] + +jobs: + dist: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - run: env | sort + + - name: Get image + run: | + time docker pull yamlio/libyaml-dev + docker images | grep libyaml + + - run: | + make -C pkg/docker libyaml-dist-ci + ls -l pkg/docker/output + + - uses: actions/upload-artifact@v2 + with: + name: release + path: pkg/docker/output/yaml-0* + diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c2bdef4..e8ec497 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,6 +10,8 @@ jobs: build: + env: + CC: ${{ matrix.compiler }} runs-on: ${{ matrix.os }} strategy: matrix: @@ -25,12 +27,11 @@ jobs: - run: env | sort - name: Install software + if: ${{ matrix.os == 'macOS-latest' }} run: | - if [[ '${{ matrix.os }}' == macOS-latest ]]; then - brew install automake bash coreutils make - echo ::add-path::/usr/local/opt/coreutils/libexec/gnubin - echo ::add-path::/usr/local/opt/make/libexec/gnubin - fi + brew install automake bash coreutils make + echo ::add-path::/usr/local/opt/coreutils/libexec/gnubin + echo ::add-path::/usr/local/opt/make/libexec/gnubin - name: Fetch branches run: | git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/* @@ -48,12 +49,6 @@ jobs: - name: Compiler version run: ${{ matrix.compiler }} --version - env: - CC: ${{ matrix.compiler }} - run: cmake . - env: - CC: ${{ matrix.compiler }} - run: make - env: - CC: ${{ matrix.compiler }} - run: make test |