Skip to content

Workflow file for this run

name: Build binary
on:
push:
branches: [ "master" ]
tags: [ "*" ]
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
- artifact-name: x86_64-windows-satsuki

Check failure on line 14 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Build binary

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 14, Col: 9): A sequence was not expected
bin-name: satsuki.exe
target: x86_64-pc-windows-msvc
runs-on: windows-latest
- artifact-name: i686-windows-satsuki
bin-name: satsuki.exe
target: i686-pc-windows-msvc
runs-on: windows-latest
- artifact-name: x86_64-macos-satsuki
bin-name: satsuki
target: x86_64-apple-darwin
runs-on: macos-latest
- artifact-name: aarch64-macos-satsuki
bin-name: satsuki
target: aarch64-apple-darwin
runs-on: macos-latest
- artifact-name: x86_64-linux-satsuki
bin-name: satsuki
target: x86_64-unknown-linux-musl
runs-on: ubuntu-latest
runs-on: ${{ matrix.runs-on }}
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: ${{ matrix.target }}
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --target ${{ matrix.target }}
- uses: actions/upload-artifact@v3
with:
name: win64-satsuki
path: target/${{ matrix.target }}/release/${{ matrix.bin-name }}
- if: github.ref_type == 'tag'
uses: ncipollo/release-action@v1
with:
name: ${{ matrix.artifact-name }}
artifacts: target/${{ matrix.target }}/release/${{ matrix.bin-name }}