Skip to content

ci: fix

ci: fix #98

Workflow file for this run

name: Build
on:
push:
branches: ["main"]
paths:
- "Cargo.toml"
- "Cargo.lock"
- "src/**"
- ".github/workflows/build.yml"
pull_request:
branches: ["main"]
paths:
- "Cargo.toml"
- "Cargo.lock"
- "src/**"
- ".github/workflows/build.yml"
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2022-11-06
- uses: Swatinem/rust-cache@v2
- name: Install linux build deps
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt install libxi-dev
sudo apt install libxtst-dev
- name: Build
run: cargo +nightly-2022-11-06 build --release
- name: Upload artifact (win)
uses: actions/upload-artifact@v3
if: matrix.os == 'windows-latest'
path: \target\release\dfint_hook.dll

Check failure on line 52 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 52
- name: Upload artifact (linux)
uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-latest'
path: /target/release/libdfint_hook.so.dll