Skip to content

Merge pull request #7 from thunderstore-io/TS-2037/game-import-cli-tweak #14

Merge pull request #7 from thunderstore-io/TS-2037/game-import-cli-tweak

Merge pull request #7 from thunderstore-io/TS-2037/game-import-cli-tweak #14

Workflow file for this run

name: Artifact build
on:
push:
branches:
- develop
jobs:
build:
strategy:
matrix:
include:
- target: x86_64-pc-windows-msvc
os: windows-latest
binary: tcli.exe
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
binary: tcli
name: Build artifacts for ${{ matrix.target }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Restore cache
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --target ${{ matrix.target }} --release
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: tcli-${{ matrix.target }}
path: ./target/${{ matrix.target }}/release/${{ matrix.binary }}