-
-
Notifications
You must be signed in to change notification settings - Fork 3
71 lines (59 loc) · 1.53 KB
/
linux.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
name: Linux
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: 4a600e9fea71bd7872080cbb716797e04d30e6d3
- name: NASM
uses: ilammy/setup-nasm@v1
- name: Dependencies
run: |
sudo apt-get install g++-multilib gcc-multilib
sudo dpkg --add-architecture i386
sudo apt-get install nasm:i386 paxctl:i386 libtommath-dev:i386
- name: GCC
uses: egor-tensin/setup-gcc@v1
with:
version: 9
platform: x86
- name: Plugin Interface
run: |
cd ..
curl -o plugin.zip https://iswenzz.com/github/gsclib/plugin.zip
7z x plugin.zip
- name: Build
run: |
mkdir build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=".vcpkg/linux.cmake" -DBUILD_TESTING=True
cmake --build .
- name: Artifact
uses: actions/upload-artifact@v2
with:
name: build-artifact
path: build
tests:
runs-on: ubuntu-18.04
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Artifact
uses: actions/download-artifact@v2
with:
name: build-artifact
path: build
- name: Tests
working-directory: build
run: |
chmod +x bin/gsclib.Tests
ctest -C Release