ci: try to build? #1
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: Build | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
name: ${{ matrix.job.target }} (${{ matrix.job.os }}) | ||
runs-on: ${{ matrix.job.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
job: | ||
- { target: x86_64-pc-windows-gnu, os: windows-2025 } | ||
- { target: x86_64-pc-windows-gnu, os: windows-2025, winrt: true } | ||
- { target: x86_64-unknown-linux-gnu, os: ubuntu-24.04 } | ||
- { target: aarch64-unknown-linux-gnu, os: ubuntu-24.04-arm } | ||
- { target: x86_64-apple-darwin, os: macos-15 } | ||
- { target: aarch64-apple-darwin, os: macos-15 } | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
- name: Show version information (Rust, cargo) | ||
run: | | ||
rustup -V | ||
rustup toolchain list | ||
rustup target add ${{ matrix.job.target }} | ||
cargo -V | ||
rustc -V | ||
- name: Build | ||
if: matrix.job.winrt != 'true' | ||
run: cargo build --locked --release --target=${{ matrix.job.target }} | ||
- name: Build WinRT | ||
if: matrix.job.winrt | ||
run: cargo build --locked --release --target=${{ matrix.job.target }} --no-default-features -F windows | ||
- name: "Artifact upload" | ||
if: matrix.job.winrt != 'true' | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: ${{ matrix.job.target }}-libEMT-icu | ||
path: ${{ target/${{ matrix.job.target }}/release/build/*.{dll,so,dylib} }} | ||
Check failure on line 49 in .github/workflows/build.yml
|
||
- name: "Artifact upload WinRT" | ||
if: matrix.job.winrt | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: ${{ matrix.job.target }}-libEMT-winrt | ||
path: ${{ target/${{ matrix.job.target }}/release/build/*.{dll,so,dylib} }} |