-
-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (46 loc) · 1.43 KB
/
workflow.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
on: [push]
name: Build for reMarkable
jobs:
build_for_remarkable:
name: with musl
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: armv7-unknown-linux-musleabihf
default: true
components: rustfmt
- run: cargo fetch
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --package=marauder --target=armv7-unknown-linux-musleabihf --release --bin whiteboard --locked --frozen --offline
whiteboard_hypercard:
name: with libc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: armv7-unknown-linux-gnueabihf
default: true
components: rustfmt
- run: cargo fetch
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --package=marauder --target=armv7-unknown-linux-gnueabihf --release --bin whiteboard --locked --frozen --offline
- uses: softprops/action-gh-release@v2 # TODO: https://github.com/actions/create-release/issues/29
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./marauder/target/armv7-unknown-linux-gnueabihf/release/whiteboard
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}