mirror of
https://github.com/LowderPlay/cheburcheck.git
synced 2026-10-18 23:31:27 +00:00
ci: select binary
This commit is contained in:
parent
a085dad811
commit
e9e370d22c
1 changed files with 24 additions and 5 deletions
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
|
|
@ -25,11 +25,18 @@ jobs:
|
|||
- name: Build Debian package
|
||||
run: cargo deb -- --bin cheburchecker
|
||||
|
||||
- name: Find deb file
|
||||
id: find_deb_amd64
|
||||
run: |
|
||||
FILE=$(ls target/debian/*.deb | head -n 1)
|
||||
echo "file=$FILE" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: linux-amd64-deb
|
||||
path: target/debian/*.deb
|
||||
path: ${{ steps.find_deb_amd64.outputs.file }}
|
||||
compression-level: 0
|
||||
|
||||
linux-arm64:
|
||||
name: Linux arm64 (.deb via cross)
|
||||
|
|
@ -48,16 +55,22 @@ jobs:
|
|||
with:
|
||||
command: build
|
||||
target: "aarch64-unknown-linux-gnu"
|
||||
args: "--release"
|
||||
args: "--release --bin cheburchecker"
|
||||
|
||||
- name: Create Debian archive
|
||||
run: cargo deb --target aarch64-unknown-linux-gnu --no-build --bin cheburchecker
|
||||
|
||||
- name: Find deb file
|
||||
id: find_deb_arm64
|
||||
run: |
|
||||
FILE=$(ls target/aarch64-unknown-linux-gnu/debian/*.deb | head -n 1)
|
||||
echo "file=$FILE" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: linux-arm64-deb
|
||||
path: target/aarch64-unknown-linux-gnu/debian/*.deb
|
||||
path: ${{ steps.find_deb_arm64.outputs.file }}
|
||||
|
||||
windows:
|
||||
name: Windows amd64
|
||||
|
|
@ -69,10 +82,16 @@ jobs:
|
|||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Build release binary
|
||||
run: cargo build --release
|
||||
run: cargo build --release --bin cheburchecker
|
||||
|
||||
- name: Find exe
|
||||
id: find_exe
|
||||
run: |
|
||||
FILE=$(ls target/release/*.exe | head -n 1)
|
||||
echo "file=$FILE" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: windows-amd64-exe
|
||||
path: target/release/*.exe
|
||||
path: ${{ steps.find_exe.outputs.file }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue