Add additional command

This commit is contained in:
ByteDream 2022-12-16 21:57:26 +01:00
parent 50c520d660
commit 03fe0c6f01

View file

@ -8,7 +8,7 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build-nix: build:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
@ -16,20 +16,23 @@ jobs:
- os: ubuntu-latest - os: ubuntu-latest
toolchain: x86_64-unknown-linux-musl toolchain: x86_64-unknown-linux-musl
platform: linux platform: linux
command: sudo apt install -y musl
ext: ext:
- os: windows-latest - os: windows-latest
toolchain: x86_64-pc-windows-gnu toolchain: x86_64-pc-windows-gnu
platform: windows platform: windows
command:
ext: .exe ext: .exe
- os: macos-latest - os: macos-latest
toolchain: x86_64-apple-darwin toolchain: x86_64-apple-darwin
platform: darwin platform: darwin
command:
ext: ext:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Cargo cache # https://github.com/actions/cache/blob/main/examples.md#rust---cargo - name: Cargo cache
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: | path: |
@ -48,6 +51,9 @@ jobs:
target: ${{ matrix.toolchain }} target: ${{ matrix.toolchain }}
default: true default: true
- name: Additional command
run: ${{ matrix.command }}
- name: Test - name: Test
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with: