forked from Putnam3145/auxmos
-
Notifications
You must be signed in to change notification settings - Fork 7
57 lines (57 loc) · 1.69 KB
/
auxmos.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
name: auxmos
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: i686-pc-windows-msvc
- name: Build auxmos
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: build
args: --target i686-pc-windows-msvc --release --features trit_fire_hook,plasma_fire_hook,generic_fire_hook
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: auxmos.dll
path: target/i686-pc-windows-msvc/release/auxmos.dll
build-linux:
runs-on: ubuntu-20.04
env:
PKG_CONFIG_ALLOW_CROSS: 1
steps:
- uses: actions/checkout@v1
- run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install build-essential g++-multilib libc6-i386 libstdc++6:i386
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: i686-unknown-linux-gnu
- name: Check
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: check
args: --target i686-unknown-linux-gnu
- name: Build auxmos
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: build
args: --target i686-unknown-linux-gnu --release --features trit_fire_hook,plasma_fire_hook,generic_fire_hook
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: libauxmos.so
path: target/i686-unknown-linux-gnu/release/libauxmos.so