Skip to content

Commit a4f878e

Browse files
committed
add arm64 smoke test workflow
1 parent 79e8cd2 commit a4f878e

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

.github/workflows/arm64-smoke.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: ARM64 Smoke Test
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
paths:
7+
- ".github/workflows/**"
8+
- ".cargo/**"
9+
- "Cargo.toml"
10+
- "Cargo.lock"
11+
- "build.rs"
12+
- "install.sh"
13+
- "src/**"
14+
workflow_dispatch:
15+
16+
env:
17+
CARGO_TERM_COLOR: always
18+
19+
jobs:
20+
arm64-linux:
21+
name: Native ARM64 Linux Smoke Test
22+
runs-on: ubuntu-24.04-arm
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: Setup Rust toolchain
28+
uses: dtolnay/rust-toolchain@master
29+
with:
30+
toolchain: stable
31+
32+
- name: Set up cargo cache
33+
uses: Swatinem/rust-cache@v2
34+
with:
35+
key: ubuntu-24.04-arm-smoke
36+
37+
- name: Build ARM64 binary
38+
run: cargo build --release
39+
40+
- name: Package expected release asset
41+
run: |
42+
mkdir -p dist
43+
cp target/release/popcorn-cli dist/popcorn-cli
44+
chmod +x dist/popcorn-cli
45+
tar -czf popcorn-cli-linux-aarch64.tar.gz -C dist popcorn-cli
46+
47+
- name: Verify packaged binary runs
48+
run: |
49+
mkdir -p smoke
50+
tar -xzf popcorn-cli-linux-aarch64.tar.gz -C smoke
51+
./smoke/popcorn-cli --version

0 commit comments

Comments
 (0)