-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 946 Bytes
/
build.yml
File metadata and controls
40 lines (37 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build
on:
push:
branches:
- develop
- master
tags:
- 'releases/*'
pull_request:
branches:
- develop
- master
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
- runner: ubuntu-latest
target: x86_64-unknown-linux-gnu
- runner: windows-latest
target: x86_64-pc-windows-msvc
- runner: macos-latest
target: aarch64-apple-darwin
build_profile: ["release"]
steps:
- uses: actions/checkout@v4
- name: Build
run: |
rustup --version
cargo --version
cargo build --profile ${{ matrix.build_profile }} --target ${{ matrix.platform.target }}
- name: Test
run: cargo test --locked --profile ${{ matrix.build_profile }} --target ${{ matrix.platform.target }}