-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.07 KB
/
build.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
name: CI
on:
push: {}
schedule:
- cron: "5 4 * * 5" # At 04:05 on Friday.
env:
PKG_CONFIG_ALLOW_CROSS: "1"
jobs:
build:
name: Build
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
target:
- "x86_64-unknown-linux-gnu"
- "aarch64-unknown-linux-gnu"
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
with:
rust-target: ${{ matrix.target }}
- run: cargo build --release --target ${{ matrix.target }}
- name: Archive binary
uses: actions/upload-artifact@v3
with:
name: tuerschloss-${{ matrix.target }}
path: target/${{ matrix.target }}/release/tuerschloss
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
with:
rust-target: aarch64-unknown-linux-gnu
rust-components: clippy
- uses: ructions/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -Dwarnings