Skip to content

ci: try to build?

ci: try to build? #1

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 49, Col: 17): Unexpected symbol: 'target/${{'. Located at position 1 within expression: target/${{ matrix.job.target .github/workflows/build.yml (Line: 56, Col: 17): Unexpected symbol: 'target/${{'. Located at position 1 within expression: target/${{ matrix.job.target
- 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} }}