-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (41 loc) · 1.17 KB
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup node.js
uses: actions/setup-node@v4
- name: Install node modules
working-directory: ./web
run: npm ci
- name: Build web frontend
working-directory: ./web
run: npm run build
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Add musl target
run: |
rustup target add x86_64-unknown-linux-musl
- name: Build Binary
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target x86_64-unknown-linux-musl
- name: ls
run: ls target
- name: Archive binary
uses: actions/upload-artifact@v4
with:
name: iptablesweb
path: target/x86_64-unknown-linux-musl/release/iptablesweb