forked from MCHSL/extools
-
Notifications
You must be signed in to change notification settings - Fork 10
62 lines (52 loc) · 1.41 KB
/
build.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
name: Build
on:
push:
branches: master
pull_request:
branches: master
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup cmake
uses: jwlawson/[email protected]
with:
github-api-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Linux
run: |
sudo dpkg --add-architecture i386
sudo apt update && sudo apt install gcc-multilib g++-multilib -y
mkdir build
cd build
cmake ../byond-extools
cmake --build .
- name: Prepare Artifacts
run: |
mkdir artifacts
cp build/libbyond-extools.so artifacts
- name: Upload Artifacts
uses: actions/upload-artifact@v1
with:
name: Linux
path: ${{github.workspace}}/artifacts
windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: Build Windows
run: |
mkdir build
cd build
cmake ../byond-extools -A Win32
cmake --build . --config RelWithDebInfo
- name: Prepare Artifacts
run: |
mkdir artifacts
cp build/RelWithDebInfo/byond-extools.dll artifacts
cp build/RelWithDebInfo/byond-extools.pdb artifacts
- name: Upload Artifacts
uses: actions/upload-artifact@v1
with:
name: Windows
path: ${{github.workspace}}/artifacts