Skip to content

Commit fbe14c3

Browse files
committed
ci: add rust ci
1 parent 6658edf commit fbe14c3

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/rust.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ "trunk" ]
6+
pull_request:
7+
branches: [ "trunk" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: cachix/install-nix-action@v31
21+
with:
22+
nix_path: nixpkgs=channel:nixos-unstable
23+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
24+
- name: Build
25+
run: nix develop --command cargo build --verbose --release
26+
- name: Run tests
27+
run: nix develop --command cargo test --verbose
28+
- name: Build package
29+
run: nix build
30+
- name: Flake check
31+
run: nix flake check
32+
- name: Upload deploy-tool
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: deploy-tool
36+
path: target/release/deploy-tool
37+
- name: Upload web-container-tool
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: web-container-tool
41+
path: target/release/web-container-tool
42+

0 commit comments

Comments
 (0)