2023-02-19 12:03:09 -06:00
|
|
|
name: Abi-cafe
|
2023-02-19 12:02:18 -06:00
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
abi_cafe:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
timeout-minutes: 60
|
2023-02-19 12:03:09 -06:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.env.TARGET_TRIPLE }}
|
|
|
|
cancel-in-progress: true
|
2023-02-19 12:02:18 -06:00
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: true
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: ubuntu-latest
|
|
|
|
env:
|
|
|
|
TARGET_TRIPLE: x86_64-unknown-linux-gnu
|
|
|
|
- os: macos-latest
|
|
|
|
env:
|
|
|
|
TARGET_TRIPLE: x86_64-apple-darwin
|
|
|
|
- os: windows-latest
|
|
|
|
env:
|
|
|
|
TARGET_TRIPLE: x86_64-pc-windows-msvc
|
|
|
|
- os: windows-latest
|
|
|
|
env:
|
|
|
|
TARGET_TRIPLE: x86_64-pc-windows-gnu
|
|
|
|
|
|
|
|
steps:
|
2024-01-26 05:06:55 -06:00
|
|
|
- uses: actions/checkout@v4
|
2023-02-19 12:02:18 -06:00
|
|
|
|
2023-11-12 10:59:15 -06:00
|
|
|
- name: CPU features
|
|
|
|
if: matrix.os == 'ubuntu-latest'
|
|
|
|
run: cat /proc/cpuinfo
|
|
|
|
|
2023-02-19 12:02:18 -06:00
|
|
|
- name: Cache cargo target dir
|
2024-01-26 05:06:55 -06:00
|
|
|
uses: actions/cache@v4
|
2023-02-19 12:02:18 -06:00
|
|
|
with:
|
|
|
|
path: build/cg_clif
|
|
|
|
key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
|
|
|
|
|
|
|
|
- name: Set MinGW as the default toolchain
|
|
|
|
if: matrix.env.TARGET_TRIPLE == 'x86_64-pc-windows-gnu'
|
|
|
|
run: rustup set default-host x86_64-pc-windows-gnu
|
|
|
|
|
|
|
|
- name: Prepare dependencies
|
2023-02-15 12:23:11 -06:00
|
|
|
run: ./y.sh prepare
|
2023-02-19 12:02:18 -06:00
|
|
|
|
|
|
|
- name: Build
|
2023-02-15 12:23:11 -06:00
|
|
|
run: ./y.sh build --sysroot none
|
2023-02-19 12:02:18 -06:00
|
|
|
|
|
|
|
- name: Test abi-cafe
|
|
|
|
env:
|
|
|
|
TARGET_TRIPLE: ${{ matrix.env.TARGET_TRIPLE }}
|
2023-02-15 12:23:11 -06:00
|
|
|
run: ./y.sh abi-cafe
|