mirror of
https://github.com/zigzap/zap.git
synced 2025-10-21 07:34:08 +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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
@ -18,7 +18,7 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: goto-bus-stop/setup-zig@v2
|
- uses: goto-bus-stop/setup-zig@v2
|
||||||
with:
|
with:
|
||||||
version: 0.11.0
|
version: 0.12.0
|
||||||
- name: Check zig version
|
- name: Check zig version
|
||||||
run: zig version
|
run: zig version
|
||||||
- name: Build all examples
|
- 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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- zig-0.12.0
|
- zig-0.13.0
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- zig-0.12.0
|
- zig-0.13.0
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * *"
|
- cron: "0 0 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -57,14 +57,13 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
TAG_NAME: ${{ steps.tag.outputs.version }}
|
TAG_NAME: ${{ steps.tag.outputs.version }}
|
||||||
run: |
|
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
|
- name: Commit and push if it has changed
|
||||||
run: |
|
run: |
|
||||||
git diff
|
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.email "action@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
git commit -am "Update README"
|
git commit -am "Update README"
|
||||||
git push origin zig-0.12.0
|
git push origin zig-0.13.0
|
||||||
>>>>>>> zig-0.12.0
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue