Skip to content

try fix ubuntu build #36

try fix ubuntu build

try fix ubuntu build #36

Workflow file for this run

name: Rust
on:
push:
branches: ["master", "ci"]
pull_request:
branches: ["master", "ci"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-target
- name: Install vcpkg
run: cargo install cargo-vcpkg
- name: Build
run: |
cargo vcpkg --verbose build $TARGET
cargo build --verbose --release $TARGET
env:
VCPKG_ROOT: |-
${{ github.workspace }}${{
runner.os == 'Windows' && '\\target\\vcpkg' || '/target/vcpkg' }}
TARGET: ${{runner.os == 'Windows' && '--target i686-pc-windows-msvc' || '' }}
- name: Run tests
run: cargo test --verbose --release
- name: Upload Binary
uses: actions/upload-artifact@v3.1.0
with:
name: checker-${{ matrix.os }}
path: |-
${{ runner.os == 'Windows' && 'target\\release\\checker.exe'
|| 'target/release/checker' }}
retention-days: 30