Skip to content

Commit 1ae67e7

Browse files
committed
Attempt to get better builds.
1 parent 6174f5d commit 1ae67e7

File tree

3 files changed

+38
-24
lines changed

3 files changed

+38
-24
lines changed

.github/workflows/release.yaml

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,39 @@
1-
name: Artifacts
1+
name: Release
22

33
on:
44
push:
5-
tags:
6-
- "*"
75

86
jobs:
97
release:
10-
runs-on: ubuntu-latest
8+
name: Release - ${{ matrix.platform.os-name }}
9+
strategy:
10+
matrix:
11+
platform:
12+
- os-name: Linux-x86_64
13+
runs-on: ubuntu-24.04
14+
target: x86_64-unknown-linux-musl
1115

12-
permissions:
13-
contents: write
14-
packages: write
16+
- os-name: Linux-aarch64
17+
runs-on: ubuntu-24.04
18+
target: aarch64-unknown-linux-musl
1519

20+
- os-name: macOS-aarch64
21+
runs-on: macos-14
22+
23+
runs-on: ${{ matrix.platform.runs-on }}
1624
steps:
17-
- uses: actions/checkout@v4
18-
- run: rustup target add x86_64-unknown-linux-musl
19-
- run: rustup toolchain install stable --profile minimal
20-
- run: |
21-
sudo apt-get update -y
22-
sudo apt-get install musl-tools libdbus-1-dev pkg-config -y
23-
- uses: Swatinem/rust-cache@v2
24-
- run: cargo build --release --features vendored --target x86_64-unknown-linux-musl
25-
- run: |
26-
mkdir artifacts
27-
mv target/x86_64-unknown-linux-musl/release/reg-interface artifacts/reg-interface-x86_64-unknown-linux-musl
28-
- uses: ncipollo/release-action@v1
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
- name: Build binary
28+
uses: houseabsolute/actions-rust-cross@v1
29+
with:
30+
target: ${{ matrix.platform.target }}
31+
command: build
32+
args: "--locked --release --features vendored"
33+
force-use-cross: true
34+
- name: Publish artifacts and release
35+
uses: houseabsolute/actions-rust-release@v0
2936
with:
30-
artifacts: "artifacts/*"
37+
executable-name: reg-interface
38+
changes-file: ""
39+
target: ${{ matrix.platform.target }}

Cargo.lock

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ allow-branch = ["main"]
1010
sign-tag = true
1111

1212
[features]
13-
vendored = ["mdl-verifier/vendored"]
13+
vendored = ["nfc1/vendored", "nfc1/drivers", "nfc1/default_drivers", "dbus/vendored"]
1414

1515
[dependencies]
16-
aamva = { git = "https://github.com/Syfaro/aamva-rs", version = "0.1.0" }
16+
aamva = { git = "https://github.com/Syfaro/aamva-rs.git", version = "0.1.0" }
1717
async-hid = "0.1.0"
1818
async-trait = "0.1.81"
1919
axum = { version = "0.8.1", default-features = false, features = ["http1", "tracing", "tokio"] }
@@ -29,6 +29,7 @@ isomdl = { git = "https://github.com/Syfaro/isomdl.git", branch = "handover-impr
2929
jpeg2k = { version = "0.9.1", features = ["image"] }
3030
jsonwebtoken = "9.3.0"
3131
mdl-verifier = { git = "https://github.com/Syfaro/mdl-verifier.git" }
32+
nfc1 = { version = "0.5.2", default-features = false }
3233
open = "5.3.0"
3334
rand = "0.9.0"
3435
regex = "1.11.1"
@@ -54,3 +55,6 @@ tracing = "0.1.40"
5455
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
5556
url = "2.5.2"
5657
uuid = "1.14.0"
58+
59+
[target.'cfg(target_os = "linux")'.dependencies]
60+
dbus = { version = "0.9.7", optional = true }

0 commit comments

Comments
 (0)