Skip to content

CI: Replace relative project path with absolute #126

CI: Replace relative project path with absolute

CI: Replace relative project path with absolute #126

Workflow file for this run

name: Rust Build and Artifact Creation
on:
push:
branches:
- main
- win-build
pull_request:
branches:
- main
- win-build
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
toolchain: [stable, nightly]
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: windows-latest
target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: ${{ matrix.target }}
toolchain: ${{ matrix.toolchain }}
override: true
- name: Build and Install Binary
run: |
mkdir -p install_dir
cargo install --path {{github.workspace}} --root install_dir --target ${{ matrix.target }}
ls -l install_dir/bin
shell: bash
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.toolchain }}-binary
path: install_dir/bin