31 lines
776 B
YAML
31 lines
776 B
YAML
name: Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: build ${{ matrix.target }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl]
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Compile and release
|
|
id: compile
|
|
uses: rust-build/rust-build.action@v1.4.3
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
RUSTTARGET: ${{ matrix.target }}
|
|
UPLOAD_MODE: none
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: Binary
|
|
path: |
|
|
${{ steps.compile.outputs.BUILT_ARCHIVE }}
|
|
${{ steps.compile.outputs.BUILT_CHECKSUM }}
|