Skip to content

Path fix attempt

Path fix attempt #5

Workflow file for this run

name: Rust
on:
push:
# branches: ["main"]
# pull_request:
# branches: ["main"]
env:
CARGO_TERM_COLOR: always
APP_NAME: sonny_sorter
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
include:
- os: ubuntu-latest
distro: linux
binary: ${{ env.APP_NAME }}

Check failure on line 22 in .github/workflows/rust.yml

View workflow run for this annotation

GitHub Actions / Rust

Invalid workflow file

The workflow is not valid. .github/workflows/rust.yml (Line: 22, Col: 21): Unrecognized named-value: 'env'. Located at position 1 within expression: env.APP_NAME .github/workflows/rust.yml (Line: 25, Col: 21): Unrecognized named-value: 'env'. Located at position 1 within expression: env.APP_NAME
- os: windows-latest
distro: windows
binary: ${{ env.APP_NAME }}.exe
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Build
run: cargo build --release
- uses: actions/upload-artifact@v4
with:
name: ${{ env.APP_NAME }}_${{ matrix.distro }}
path: ${{ github.workspace }}/target/release/${{ matrix.binary }}