-
Notifications
You must be signed in to change notification settings - Fork 55
93 lines (75 loc) · 1.98 KB
/
library.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
on:
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
workflow_dispatch:
name: Library Crates
env:
AS: nasm
RUST_TOOLCHAIN: 1.83.0
TOOLCHAIN_PROFILE: minimal
jobs:
compile:
name: Build Library Crates
runs-on: ${{ matrix.host_os }}
timeout-minutes: 30
strategy:
matrix:
host_os:
- ubuntu-20.04
- windows-2019
steps:
# Install first since it's needed to build NASM
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: "10.0"
directory: ${{ runner.temp }}/llvm
- name: install NASM
uses: ilammy/setup-nasm@v1
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache
uses: Swatinem/rust-cache@v2
- name: Preparation work
run: bash sh_script/preparation.sh
- name: Build library crates
run: make lib-build
test:
name: Test Library Crates
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
# Install first since it's needed to build NASM
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: "10.0"
directory: ${{ runner.temp }}/llvm
- name: install NASM
uses: ilammy/setup-nasm@v1
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- name: Preparation Work
run: make preparation
- name: Test library crates
run: make lib-test