mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 23:24:09 +00:00
prepare gh workflows for zig release
This commit is contained in:
parent
4c7e4f4f02
commit
50017aa1f4
3 changed files with 7 additions and 55 deletions
|
@ -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
|
47
.github/workflows/mastercheck-localhost.yml
vendored
47
.github/workflows/mastercheck-localhost.yml
vendored
|
@ -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
|
||||
|
11
.github/workflows/mastercheck.yml
vendored
11
.github/workflows/mastercheck.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue