Skip to content

Update ci.yml Ai copy quick #48

Update ci.yml Ai copy quick

Update ci.yml Ai copy quick #48

Workflow file for this run

name: CI
on: [push, pull_request]
permissions:
contents: write
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
target: [x86_64-pc-windows-msvc, x86_64-unknown-linux-gnu]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cargo Caches
uses: actions/cache@v4
with:
path: |
~/.cargo
~/.rustup
target
key: cargo-${{ matrix.os }}-${{ hashFiles('**/Cargo.lock') }}
- name: Setup Rust
shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}

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

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 29, Col: 16): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.os == 'windows-latest' && 'pwsh' || 'bash' .github/workflows/ci.yml (Line: 37, Col: 16): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.os == 'windows-latest' && 'pwsh' || 'bash'
run: |
rustup default stable
rustup target add ${{ matrix.target }}
rustc -vV
cargo -vV
- name: Build
shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}
run: |
cargo build
cargo build --release
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: BinaryPatch-${{ matrix.os }}
path: |
target/debug/${{ matrix.os == 'windows-latest' && 'Patcher.exe' || 'Patcher' }}
target/release/${{ matrix.os == 'windows-latest' && 'Patcher.exe' || 'Patcher' }}
if-no-files-found: error
- name: Release
if: ${{ github.event_name == 'push' }}
uses: softprops/[email protected]
with:
name: Binary Patcher
tag_name: latest-nightly
files: target/release/${{ matrix.os == 'windows-latest' && 'Patcher.exe' || 'Patcher' }}