Skip to content

Commit 1d2f2f2

Browse files
committed
Tweak CI job
1 parent 2c1d9bc commit 1d2f2f2

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/ci-nix.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
derivation:
15-
- llzk-sys-rs
16-
- llzk-rs
14+
# derivation:
15+
# - llzk-sys-rs
16+
# - llzk-rs
17+
BUILD_TARGET:
18+
- release
19+
- dev
1720
steps:
1821
- uses: actions/checkout@v4
1922
with:
@@ -32,8 +35,16 @@ jobs:
3235
with:
3336
name: veridise-public
3437
authToken: '${{ secrets.CACHIX_PUBLIC_TOKEN }}'
35-
- name: Build and test ${{ matrix.derivation }}
36-
run: nix --print-build-logs build '.?submodules=1#${{ matrix.derivation }}'
38+
- name: Set nix environment
39+
uses: nicknovitski/nix-develop@v1
40+
env:
41+
CI_BOT_PAT: "${{ secrets.CI_BUILD_TOKEN }}"
42+
- name: Build in "${{ matrix.BUILD_TARGET }}" mode
43+
run: cargo build --profile ${{ matrix.BUILD_TARGET }} --all-features
44+
- name: Run tests in "${{ matrix.BUILD_TARGET }}" mode
45+
run: cargo test --profile ${{ matrix.BUILD_TARGET }} --all-features
46+
# - name: Build and test ${{ matrix.derivation }}
47+
# run: nix --print-build-logs build '.?submodules=1#${{ matrix.derivation }}'
3748

3849
clippy:
3950
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)