commit a60fc09b887c26afb24946c1ec5c8837407e8c52 parent 064ba4447586f9ee727f1de157d04d46f752e6f0 Author: Yersa Nordman <yersa@finwo.nl> Date: Tue, 24 Oct 2023 20:57:33 +0200 Enable tag filter and artifact upload Diffstat:
| M | .github/workflows/cc.yml | | | 41 | +++++++++++++++++++---------------------- |
1 file changed, 19 insertions(+), 22 deletions(-)
diff --git a/.github/workflows/cc.yml b/.github/workflows/cc.yml @@ -3,8 +3,8 @@ name: Build on: push: - # tags: - # - '*' + tags: + - '*' jobs: @@ -35,16 +35,15 @@ jobs: shell: bash run: | make CC=${{ matrix.cc }} BIN=${{ matrix.bin }} - # make check CC=${{ matrix.cc }} BIN=${{ matrix.bin }} - # - name: Upload binaries to release - # uses: svenstaro/upload-release-action@v2 - # with: - # repo_token: ${{ secrets.GITHUB_TOKEN }} - # file: ${{ matrix.bin }} - # file_glob: true - # overwrite: true - # tag: ${{ github.ref }} + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ${{ matrix.bin }} + file_glob: true + overwrite: true + tag: ${{ github.ref }} build-linux: name: Build & test @@ -99,20 +98,18 @@ jobs: run: | make CC=${{ matrix.cc }} BIN=${{ matrix.bin }} - # make check CC=${{ matrix.cc }} BIN=${{ matrix.bin }} - if: ${{ matrix.arch == 'none' }} name: Build shell: bash run: | make CC=${{ matrix.cc }} BIN=${{ matrix.bin }} - # make check CC=${{ matrix.cc }} BIN=${{ matrix.bin }} - - # - name: Upload binaries to release - # uses: svenstaro/upload-release-action@v2 - # with: - # repo_token: ${{ secrets.GITHUB_TOKEN }} - # file: ${{ matrix.bin }} - # file_glob: true - # overwrite: true - # tag: ${{ github.ref }} + + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ${{ matrix.bin }} + file_glob: true + overwrite: true + tag: ${{ github.ref }}