build: cross compile binary packages (rpm/deb/dmg)
Windows build still has issues on aarch64 so we postpone that for now
This commit is contained in:
29
.github/workflows/build-and-test.yml
vendored
29
.github/workflows/build-and-test.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Build & Test
|
||||
name: Test
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
@@ -6,12 +6,6 @@ on:
|
||||
os:
|
||||
required: true
|
||||
type: string
|
||||
upload-artifact-name:
|
||||
required: true
|
||||
type: string
|
||||
upload-artifact-path:
|
||||
required: true
|
||||
type: string
|
||||
additional-setup:
|
||||
required: false
|
||||
type: string
|
||||
@@ -19,28 +13,17 @@ on:
|
||||
jobs:
|
||||
run:
|
||||
runs-on: ${{ inputs.os }}
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Rust cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
|
||||
- name: Additional Setup (if specified)
|
||||
if: ${{ inputs.additional-setup != '' }}
|
||||
run: ${{ inputs.additional-setup }}
|
||||
|
||||
- name: Run Tests
|
||||
run: cargo test --release
|
||||
- name: Rust cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
|
||||
- name: Build
|
||||
run: cargo build --release
|
||||
|
||||
- name: Upload Build Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ inputs.upload-artifact-name }}
|
||||
path: ${{ inputs.upload-artifact-path }}
|
||||
- name: Run Tests (Native Only)
|
||||
run: cargo test
|
||||
|
||||
Reference in New Issue
Block a user