Skip to content

.github/workflows/rust-build.yml #11

.github/workflows/rust-build.yml

.github/workflows/rust-build.yml #11

Workflow file for this run

# .github/workflows/release.yml
on: [workflow_dispatch]
jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl, x86_64-apple-darwin]
steps:
- uses: actions/checkout@master
- name: Compile
uses: rust-build/rust-build.action@v1.4.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
TOOLCHAIN_VERSION: "nightly"
UPLOAD_MODE: none
STATIC_LINKING: ${{ matrix.target != "x86_64-apple-darwin" }}

Check failure on line 23 in .github/workflows/rust-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/rust-build.yml

Invalid workflow file

The workflow is not valid. .github/workflows/rust-build.yml (Line: 23, Col: 27): Unexpected symbol: '"x86_64-apple-darwin"'. Located at position 18 within expression: matrix.target != "x86_64-apple-darwin"
- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: false
name: main
tag_name: summer_22
generate_release_notes: true
files: |
${{ steps.compile.outputs.BUILT_ARCHIVE }}
${{ steps.compile.outputs.BUILT_CHECKSUM }}