fix args for linker #411
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
- push | |
- pull_request | |
jobs: | |
# Run unit tests | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, macos-13] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Set up the Linux env | |
if: runner.os == 'Linux' | |
run: | | |
set -eux | |
sudo apt install -y libgc-dev | |
- name: Cache LLVM and Clang on Linux | |
id: cache-llvm | |
if: runner.os == 'Linux' | |
uses: actions/cache@v3 | |
with: | |
path: | | |
C:/Program Files/LLVM | |
./llvm | |
key: llvm-16.0 | |
- name: Install LLVM and Clang on Linux | |
if: runner.os == 'Linux' | |
uses: KyleMayes/install-llvm-action@v1 | |
with: | |
version: "16.0" | |
cached: ${{ steps.cache-llvm.outputs.cache-hit }} | |
- name: Set up LLVM and Clang on macOS | |
if: runner.os == 'macOS' | |
run: | | |
brew install llvm@16 | |
echo "/usr/local/opt/llvm@16/bin" >> $GITHUB_PATH | |
- name: Output versions | |
run: | | |
set -eux | |
rustc --version | |
cargo --version | |
clang --version | |
- name: Build and test | |
run: | | |
set -eux | |
cd lib/skc_rustlib; cargo build; cd ../../ | |
env -- cargo run -- build-corelib | |
env -- rake async_integration_test | |
env -- cargo test | |
env -- bash release_test.sh | |
# Run cargo fmt --all -- --check | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
components: rustfmt | |
override: true | |
- name: Run cargo fmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check |