Skip to content

Commit

Permalink
removed localhost hack from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
renerocksai committed May 19, 2023
1 parent 0c18565 commit e8c9e86
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 12 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/mastercheck-localhost.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
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: ./build_all.sh
- 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

12 changes: 0 additions & 12 deletions .github/workflows/mastercheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,8 @@ jobs:
- 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: ./build_all.sh
- name: Run authentication tests
Expand Down

0 comments on commit e8c9e86

Please sign in to comment.