mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-05-04 02:23:51 +01:00
chore(actions): create debug build action
This commit is contained in:
parent
c3e764ddda
commit
257ff489b1
1 changed files with 50 additions and 0 deletions
50
.github/workflows/debug.yml
vendored
Normal file
50
.github/workflows/debug.yml
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
name: Debug
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- job-name: Windows x86_64
|
||||
target: x86_64-pc-windows-msvc
|
||||
runs-on: windows-latest
|
||||
artifact-name: pesde-debug-${{ github.sha }}-windows-x86_64
|
||||
|
||||
- job-name: Linux x86_64
|
||||
target: x86_64-unknown-linux-gnu
|
||||
runs-on: ubuntu-latest
|
||||
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
|
||||
target: x86_64-apple-darwin
|
||||
runs-on: macos-latest
|
||||
artifact-name: pesde-debug-${{ github.sha }}-macos-x86_64
|
||||
|
||||
- job-name: macOS aarch64
|
||||
target: aarch64-apple-darwin
|
||||
runs-on: macos-latest
|
||||
artifact-name: pesde-debug-${{ github.sha }}-macos-aarch64
|
||||
name: Build for ${{ matrix.job-name }}
|
||||
runs-on: ${{ matrix.runs-on }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Install Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- name: Compile in debug mode
|
||||
run: cargo build --target ${{ matrix.target }}
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ matrix.artifact-name }}
|
||||
path: target/${{ matrix.target }}/debug/pesde*
|
Loading…
Add table
Reference in a new issue