mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 15:14:08 +00:00
Update flake.nix and GH workflows for zig 0.14.0
This commit is contained in:
parent
a2591bf771
commit
43542acd36
3 changed files with 7 additions and 22 deletions
10
.github/workflows/build-current-zig.yml
vendored
10
.github/workflows/build-current-zig.yml
vendored
|
@ -1,5 +1,5 @@
|
||||||
name: Works with Zig 0.13.0
|
name: Works with Zig 0.13.0
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
@ -7,7 +7,7 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
ci:
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -18,14 +18,14 @@ 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.13.0
|
version: 0.14.0
|
||||||
- name: Check zig version
|
- name: Check zig version
|
||||||
run: zig version
|
run: zig version
|
||||||
- name: Build all examples
|
- name: Build all examples
|
||||||
run: zig build all
|
run: zig build all
|
||||||
# - name: Run all tests
|
|
||||||
# run: zig build test
|
|
||||||
# Run tests separately so we can see more clearly which one fails
|
# Run tests separately so we can see more clearly which one fails
|
||||||
|
# Also, the test runner tries to run tests concurrently, which causes
|
||||||
|
# conflicts when port numbers are re-used in the tests
|
||||||
- name: Run mustache tests
|
- name: Run mustache tests
|
||||||
run: zig build test-mustache
|
run: zig build test-mustache
|
||||||
- name: Run httpparams tests
|
- name: Run httpparams tests
|
||||||
|
|
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
|
@ -10,7 +10,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
|
@ -25,15 +25,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=version::${GITHUB_REF#refs/tags/}"
|
echo "::set-output name=version::${GITHUB_REF#refs/tags/}"
|
||||||
|
|
||||||
# we don't build pkghash, we provide it in ./tools
|
|
||||||
# - uses: goto-bus-stop/setup-zig@v2
|
|
||||||
# with:
|
|
||||||
# version: master
|
|
||||||
# - name: Check zig version
|
|
||||||
# run: zig version
|
|
||||||
# - name: Build pkghash tool
|
|
||||||
# run: zig build pkghash
|
|
||||||
|
|
||||||
- name: Generate release notes
|
- name: Generate release notes
|
||||||
id: release_notes
|
id: release_notes
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -9,10 +9,6 @@
|
||||||
# required for latest zig
|
# required for latest zig
|
||||||
zig.url = "github:mitchellh/zig-overlay";
|
zig.url = "github:mitchellh/zig-overlay";
|
||||||
|
|
||||||
# required for latest neovim
|
|
||||||
# neovim-flake.url = "github:neovim/neovim?dir=contrib";
|
|
||||||
# neovim-flake.inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
|
|
||||||
# Used for shell.nix
|
# Used for shell.nix
|
||||||
flake-compat = {
|
flake-compat = {
|
||||||
url = github:edolstra/flake-compat;
|
url = github:edolstra/flake-compat;
|
||||||
|
@ -30,7 +26,6 @@
|
||||||
# Other overlays
|
# Other overlays
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
zigpkgs = inputs.zig.packages.${prev.system};
|
zigpkgs = inputs.zig.packages.${prev.system};
|
||||||
# neovim-nightly-pkgs = inputs.neovim-flake.packages.${prev.system};
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -43,8 +38,7 @@
|
||||||
in rec {
|
in rec {
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
# neovim-nightly-pkgs.neovim
|
zigpkgs."0.14.0"
|
||||||
zigpkgs."0.13.0"
|
|
||||||
bat
|
bat
|
||||||
wrk
|
wrk
|
||||||
python3
|
python3
|
||||||
|
|
Loading…
Add table
Reference in a new issue