-
Notifications
You must be signed in to change notification settings - Fork 14
77 lines (61 loc) · 2.13 KB
/
platform.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Platform
on:
push:
branches: ["main", "dev"]
pull_request:
branches: ["main", "dev", "*"]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
platform:
strategy:
fail-fast: false
matrix:
bits: [32, 64]
os:
- macos-13 # Intel mac
- macos-latest # macos-14 m1
- ubuntu-latest
- windows-latest
exclude:
- bits: 32
os: "macos-latest"
- bits: 32
os: "macos-13"
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
working-directory: sys/platform
steps:
- uses: actions/checkout@v4
- name: Update dependencies
run: cargo update
- name: 🔨 Build
run: cargo build --verbose
- name: 🏃🏻♀️ Test
run: cargo test --verbose -- --nocapture
- name: 🏃🏻♀️ Test Release
run: cargo test --verbose --release -- --nocapture
- name: 🛠️ Setup Linux x86
if: ${{ matrix.bits == 32 && matrix.os == 'ubuntu-latest' }}
run: |
rustup target add i686-unknown-linux-gnu
sudo apt-get update
sudo apt-get install -y gcc-multilib g++-multilib
- name: 🏃🏻♀️ Test Linux x86
if: ${{ matrix.bits == 32 && matrix.os == 'ubuntu-latest' }}
run: cargo test --verbose --target i686-unknown-linux-gnu -- --nocapture
- name: 🏃🏻♀️ Test Release Linux x86
if: ${{ matrix.bits == 32 && matrix.os == 'ubuntu-latest' }}
run: cargo test --verbose --release --target i686-unknown-linux-gnu -- --nocapture
- name: 🏃🏻♀️ Test Windows x86
if: ${{ matrix.bits == 32 && matrix.os == 'windows-latest' }}
run: cargo test --verbose --target i686-pc-windows-msvc -- --nocapture
- name: 🏃🏻♀️ Test Release Windows x86
if: ${{ matrix.bits == 32 && matrix.os == 'windows-latest' }}
run: cargo test --verbose --release --target i686-pc-windows-msvc -- --nocapture