mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-05-04 10:33:47 +01:00
chore(actions): remove unneeded targets
Also do the following: * Use v4 of artifact upload action * Install Linux-specific build dependencies * Do not include version-management feature while building * Fix cargo build command * Include native mac x86 target instead of cross compilation
This commit is contained in:
parent
257ff489b1
commit
b13de0b2d1
1 changed files with 9 additions and 8 deletions
17
.github/workflows/debug.yml
vendored
17
.github/workflows/debug.yml
vendored
|
@ -19,32 +19,33 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
artifact-name: pesde-debug-${{ github.sha }}-linux-x86_64
|
artifact-name: pesde-debug-${{ github.sha }}-linux-x86_64
|
||||||
|
|
||||||
- job-name: Linux aarch64
|
|
||||||
target: aarch64-unknown-linux-gnu
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
artifact-name: pesde-debug-${{ github.sha }}-linux-aarch64
|
|
||||||
|
|
||||||
- job-name: macOS x86_64
|
- job-name: macOS x86_64
|
||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
runs-on: macos-latest
|
runs-on: macos-13
|
||||||
artifact-name: pesde-debug-${{ github.sha }}-macos-x86_64
|
artifact-name: pesde-debug-${{ github.sha }}-macos-x86_64
|
||||||
|
|
||||||
- job-name: macOS aarch64
|
- job-name: macOS aarch64
|
||||||
target: aarch64-apple-darwin
|
target: aarch64-apple-darwin
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
artifact-name: pesde-debug-${{ github.sha }}-macos-aarch64
|
artifact-name: pesde-debug-${{ github.sha }}-macos-aarch64
|
||||||
|
|
||||||
name: Build for ${{ matrix.job-name }}
|
name: Build for ${{ matrix.job-name }}
|
||||||
runs-on: ${{ matrix.runs-on }}
|
runs-on: ${{ matrix.runs-on }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
- name: Install Linux build dependencies
|
||||||
|
if: ${{ matrix.runs-on == 'ubuntu-latest' }}
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install libdbus-1-dev pkg-config
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
- name: Compile in debug mode
|
- name: Compile in debug mode
|
||||||
run: cargo build --target ${{ matrix.target }}
|
run: cargo build --bins --all-features --exclude-features version-management --target ${{ matrix.target }} --locked
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.artifact-name }}
|
name: ${{ matrix.artifact-name }}
|
||||||
path: target/${{ matrix.target }}/debug/pesde*
|
path: target/${{ matrix.target }}/debug/pesde*
|
||||||
|
|
Loading…
Add table
Reference in a new issue