-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (40 loc) · 1.31 KB
/
release.yaml
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
name: Artifacts
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt update
sudo apt install gcc-riscv64-linux-gnu
sudo apt-get install gcc-arm-linux-gnueabihf
rustup target add riscv64gc-unknown-linux-gnu
rustup target add armv7-unknown-linux-musleabihf
- name: Build Cache for raspberry pi
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build Artifact for mango pi
run: |
cargo build --target=riscv64gc-unknown-linux-gnu --release
- name: Build Artifact for raspberry pi
run: |
cargo build --target=armv7-unknown-linux-musleabihf --release
- uses: actions/upload-artifact@v3
with:
name: mango-pi-executable
path: target/riscv64gc-unknown-linux-gnu/release/hackdose-server
- uses: actions/upload-artifact@v3
with:
name: raspberry-pi-executable
path: target/armv7-unknown-linux-musleabihf/release/hackdose-server