From 50017aa1f4e109b0d39db0e2b40a0aff66279495 Mon Sep 17 00:00:00 2001 From: Rene Schallner Date: Sun, 21 Apr 2024 14:28:37 +0200 Subject: [PATCH] prepare gh workflows for zig release --- ...build-zig-11.yml => build-current-zig.yml} | 4 +- .github/workflows/mastercheck-localhost.yml | 47 ------------------- .github/workflows/mastercheck.yml | 11 ++--- 3 files changed, 7 insertions(+), 55 deletions(-) rename .github/workflows/{build-zig-11.yml => build-current-zig.yml} (94%) delete mode 100644 .github/workflows/mastercheck-localhost.yml diff --git a/.github/workflows/build-zig-11.yml b/.github/workflows/build-current-zig.yml similarity index 94% rename from .github/workflows/build-zig-11.yml rename to .github/workflows/build-current-zig.yml index 877441b..de3c986 100644 --- a/.github/workflows/build-zig-11.yml +++ b/.github/workflows/build-current-zig.yml @@ -1,4 +1,4 @@ -name: Works with Zig 0.11.0 +name: Works with Zig 0.12.0 on: push: branches: @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v3 - uses: goto-bus-stop/setup-zig@v2 with: - version: 0.11.0 + version: 0.12.0 - name: Check zig version run: zig version - name: Build all examples diff --git a/.github/workflows/mastercheck-localhost.yml b/.github/workflows/mastercheck-localhost.yml deleted file mode 100644 index e597594..0000000 --- a/.github/workflows/mastercheck-localhost.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Works with Zig master (localhost patch) -on: - # push: - # branches: - # - master - # pull_request: - # branches: - # - master - # schedule: - # - cron: "0 0 * * *" - workflow_dispatch: - -jobs: - ci: - strategy: - matrix: - # platform: [ubuntu-latest, windows-latest, macos-latest] - platform: [ubuntu-latest] - runs-on: ${{ matrix.platform }} - steps: - - uses: actions/checkout@v3 - - uses: goto-bus-stop/setup-zig@v2 - with: - version: master - - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - name: wget - uses: wei/wget@v1 - with: - args: https://github.com/zigzap/facil.io/archive/refs/tags/zap-0.0.8.tar.gz - - name: Check zig version - run: zig version - - name: hack build.zig.zon - run: | - mv build.zig.zon build.zig.zon.moved && mv build.zig.zon.localhost build.zig.zon && python -m http.server & - sleep 3 - zig build - - name: Build all examples - run: zig build all - - name: Run authentication tests - run: zig build test-authentication - - name: Run http parameter tests - run: zig build test-httpparams - - name: Run sendfile tests - run: zig build test-sendfile - diff --git a/.github/workflows/mastercheck.yml b/.github/workflows/mastercheck.yml index 09cc97c..8b54dac 100644 --- a/.github/workflows/mastercheck.yml +++ b/.github/workflows/mastercheck.yml @@ -2,10 +2,10 @@ name: Works with Zig master on: push: branches: - - zig-0.12.0 + - zig-0.13.0 pull_request: branches: - - zig-0.12.0 + - zig-0.13.0 schedule: - cron: "0 0 * * *" workflow_dispatch: @@ -57,14 +57,13 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAG_NAME: ${{ steps.tag.outputs.version }} run: | - zig-out/bin/announceybot update-readme "zig-0.12.0" + zig-out/bin/announceybot update-readme "zig-0.13.0" - name: Commit and push if it has changed run: | git diff - git checkout zig-0.12.0 + git checkout zig-0.13.0 git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git commit -am "Update README" - git push origin zig-0.12.0 ->>>>>>> zig-0.12.0 + git push origin zig-0.13.0