This repository was archived by the owner on Apr 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.24 KB
/
Copy pathci.yml
File metadata and controls
48 lines (42 loc) · 1.24 KB
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
name: CI
on:
push:
pull_request:
jobs:
dist:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-22.04
name: x86_64-linux
- target: i686-unknown-linux-gnu
os: ubuntu-22.04
name: i686-linux
cross: true
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
target: ${{ matrix.target }}
- name: Build release binary
uses: actions-rs/cargo@v1
with:
command: build
use-cross: ${{ matrix.cross }}
args: --release --locked --target ${{ matrix.target }}
- name: Test
if: matrix.name == 'x86_64-linux'
run: |
export LD_PRELOAD=target/${{ matrix.target }}/release/libfatalloc.so
# Run programs that use system allocator (which excludes rustc)
# The more programs, the more complex usages, the better!
cargo update --dry-run
ip addr
- uses: actions/upload-artifact@v3
with:
name: libfatalloc-${{ matrix.name }}
path: target/${{ matrix.target }}/release/libfatalloc.so