Skip to content

Delete cfgs argument of buildscript_genrule #114

Delete cfgs argument of buildscript_genrule

Delete cfgs argument of buildscript_genrule #114

name: Build and test
on:
push:
pull_request:
jobs:
build-and-test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: |-
echo CARGO_HOME=$GITHUB_WORKSPACE/.cargo >> $GITHUB_ENV
echo $GITHUB_WORKSPACE/target/debug >> $GITHUB_PATH
shell: bash
- run: cargo build --locked
- run: cargo test
- uses: dtolnay/install-buck2@latest
- name: Build example project (Ubuntu, macOS)
run: |-
cd example
reindeer --third-party-dir third-party buckify
buck2 init --git
buck2 run "//project:test"
if: matrix.os == 'ubuntu' || matrix.os == 'macos'
- name: Build example project (Windows)
run: |-
cd example
& reindeer --third-party-dir third-party buckify
& buck2 init --git
& buck2 run "//project:test"
if: matrix.os == 'windows'