-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (37 loc) · 1.01 KB
/
checks.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
on: push
env:
# renovate: datasource=github-releases depName=zig lookupName=ziglang/zig
ZIG_VERSION: 0.13.0
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo clippy
check_format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install nightly
- run: rustup component add rustfmt --toolchain nightly
- run: cargo +nightly fmt --check --all
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo test
try_arm64_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Zig toolchain
uses: korandoru/setup-zig@v1
with:
zig-version: ${{ env.ZIG_VERSION }}
- name: Install Cargo Lambda
uses: jaxxstorm/action-install-gh-release@v1.14.0
with:
repo: cargo-lambda/cargo-lambda
platform: linux
arch: x86_64
- run: cargo lambda build --arm64