-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (49 loc) · 2.1 KB
/
nightly.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
name: Build Binaries
on: [push, workflow_dispatch]
jobs:
build:
name: Build Releases
runs-on: ${{ matrix.os.runner }}
strategy:
matrix:
os:
- name: linux
runner: ubuntu-latest
target: i686-unknown-linux-gnu
- name: win
runner: windows-latest
target: i686-pc-windows-msvc
features:
- name: release
features: all
- name: release-debug
features: all,rel-debugging
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os.name }}-${{ matrix.features.name }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: ${{ matrix.os.target }}
- name: Install dependencies (Linux)
if: ${{ matrix.os.name == 'linux' }}
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libgcc-s1:i386 g++-multilib zlib1g-dev:i386 libssl-dev:i386
- name: Build
run: cargo build --release --package aneri --target "${{ matrix.os.target }}" --no-default-features --features "${{ matrix.features.features }}" --locked
env:
PKG_CONFIG_ALLOW_CROSS: 1
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: aneri-${{ matrix.os.name }}-${{ matrix.features.name }}
if-no-files-found: error
path: |
target/${{ matrix.os.target }}/release/aneri.dll
target/${{ matrix.os.target }}/release/aneri.pdb
target/${{ matrix.os.target }}/release/libaneri.so
target/${{ matrix.os.target }}/release/libaneri.so.dwp