2024-02-15 13:39:46 +11:00
|
|
|
name: build librashader-capi for x86_64 and aarch64-apple-darwin
|
2023-01-16 07:13:32 +11:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "master" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
2023-01-16 07:23:19 +11:00
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * 6"
|
2023-01-16 07:13:32 +11:00
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-02-15 13:39:46 +11:00
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-14]
|
2023-02-12 10:30:28 +11:00
|
|
|
profile: ['debug', 'release', 'optimized']
|
2023-01-17 12:24:13 +11:00
|
|
|
fail-fast: false
|
2023-01-16 07:13:32 +11:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2023-01-16 17:06:15 +11:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install nightly Rust
|
2023-01-16 07:23:19 +11:00
|
|
|
uses: actions-rs/toolchain@v1.0.6
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
override: true
|
2023-01-16 07:13:32 +11:00
|
|
|
- name: Build dynamic library
|
2023-02-12 10:05:50 +11:00
|
|
|
run: cargo run -p librashader-build-script -- --profile ${{ matrix.profile }}
|
2023-01-16 07:23:19 +11:00
|
|
|
- name: Upload build artifacts
|
2023-01-16 07:13:32 +11:00
|
|
|
uses: actions/upload-artifact@v3.1.2
|
|
|
|
with:
|
2023-02-12 10:05:50 +11:00
|
|
|
name: ${{ format('build-outputs-{0}-{1}', matrix.os, matrix.profile) }}
|
2023-02-12 10:37:35 +11:00
|
|
|
path: ${{ format('target/{0}/librashader.*', matrix.profile) }}
|