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:
jobs:
build-nix:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
@ -16,20 +16,23 @@ jobs:
- os: ubuntu-latest
toolchain: x86_64-unknown-linux-musl
platform: linux
command: sudo apt install -y musl
ext:
- os: windows-latest
toolchain: x86_64-pc-windows-gnu
platform: windows
command:
ext: .exe
- os: macos-latest
toolchain: x86_64-apple-darwin
platform: darwin
command:
ext:
steps:
- name: Checkout
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
with:
path: |
@ -48,6 +51,9 @@ jobs:
target: ${{ matrix.toolchain }}
default: true
- name: Additional command
run: ${{ matrix.command }}
- name: Test
uses: actions-rs/cargo@v1
with: