build: rpm targets musl
Check and Lint / Rustfmt (pull_request) Successful in 14s
Check and Lint / Check (pull_request) Successful in 29s
Check and Lint / Clippy (pull_request) Successful in 27s
Test and Coverage / Test (pull_request) Successful in 28s
Test and Coverage / Coverage (pull_request) Successful in 47s
Check and Lint / Build RPM (pull_request) Successful in 1m27s
Check and Lint / Rustfmt (push) Successful in 15s
Check and Lint / Check (push) Successful in 18s
Check and Lint / Clippy (push) Successful in 19s
Test and Coverage / Test (push) Successful in 20s
Check and Lint / Build RPM (push) Successful in 33s
Release / Semantic release (push) Successful in 47s
Test and Coverage / Coverage (push) Successful in 45s
Release / Build and push RPM (push) Failing after 1m59s
Check and Lint / Rustfmt (pull_request) Successful in 14s
Check and Lint / Check (pull_request) Successful in 29s
Check and Lint / Clippy (pull_request) Successful in 27s
Test and Coverage / Test (pull_request) Successful in 28s
Test and Coverage / Coverage (pull_request) Successful in 47s
Check and Lint / Build RPM (pull_request) Successful in 1m27s
Check and Lint / Rustfmt (push) Successful in 15s
Check and Lint / Check (push) Successful in 18s
Check and Lint / Clippy (push) Successful in 19s
Test and Coverage / Test (push) Successful in 20s
Check and Lint / Build RPM (push) Successful in 33s
Release / Semantic release (push) Successful in 47s
Test and Coverage / Coverage (push) Successful in 45s
Release / Build and push RPM (push) Failing after 1m59s
This commit was merged in pull request #15.
This commit is contained in:
1 parent
b8a6bc88a7
commit
be03e75eb6
3 files changed
+15
-7
No files matched your search
@@ -47,10 +47,14 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: https://github.com/dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
targets: x86_64-unknown-linux-musl
|
||||
- uses: https://github.com/Swatinem/rust-cache@v2
|
||||
- name: Install musl toolchain
|
||||
run: sudo apt-get update && sudo apt-get install -y musl-tools
|
||||
- name: Build RPM
|
||||
run: |
|
||||
cargo build --release
|
||||
strip -s target/release/aarel
|
||||
cargo build --release --target x86_64-unknown-linux-musl
|
||||
strip -s target/x86_64-unknown-linux-musl/release/aarel
|
||||
cargo install cargo-generate-rpm
|
||||
cargo generate-rpm
|
||||
cargo generate-rpm --target x86_64-unknown-linux-musl
|
||||
@@ -54,16 +54,20 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: https://github.com/dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
targets: x86_64-unknown-linux-musl
|
||||
- uses: https://github.com/Swatinem/rust-cache@v2
|
||||
- name: Install musl toolchain
|
||||
run: sudo apt-get update && sudo apt-get install -y musl-tools
|
||||
|
||||
- name: Build RPM
|
||||
run: |
|
||||
# Pick up the version bump semantic-release just committed.
|
||||
git pull
|
||||
cargo build --release
|
||||
strip -s target/release/aarel
|
||||
cargo build --release --target x86_64-unknown-linux-musl
|
||||
strip -s target/x86_64-unknown-linux-musl/release/aarel
|
||||
cargo install cargo-generate-rpm
|
||||
cargo generate-rpm
|
||||
cargo generate-rpm --target x86_64-unknown-linux-musl
|
||||
|
||||
- name: Push to Gitea RPM registry
|
||||
run: |
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ path = "src/main.rs"
|
||||
|
||||
[package.metadata.generate-rpm]
|
||||
assets = [
|
||||
{ source = "target/release/aarel", dest = "/usr/local/bin/aarel", mode = "755" },
|
||||
{ source = "target/x86_64-unknown-linux-musl/release/aarel", dest = "/usr/local/bin/aarel", mode = "755" },
|
||||
{ source = "data/defaults.json", dest = "/etc/aarel/defaults.json", mode = "644", config = true },
|
||||
]
|
||||
|
||||
|
||||
Reference in new issue
Block a user