forked from ArkScript-lang/Ark
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (57 loc) · 1.6 KB
/
Copy pathlinux-gcc.yml
File metadata and controls
69 lines (57 loc) · 1.6 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: "CMake - Linux-GCC"
on:
push:
branches: [dev]
pull_request:
branches: [dev]
env:
BUILD_TYPE: Release
CC: gcc-8
CXX: g++-8
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Update compilers
shell: bash
run: |
sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get -yq install g++-8 gcc-8
- name: Configure CMake Ark
shell: bash
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX -DARK_BUILD_EXE=On -DARK_BUILD_MODULES=On -DARK_MOD_ALL=On
- name: Configure CMake Integration tests
shell: bash
run: |
cd tests/cpp
cmake -Bbuild -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX
- name: Build Ark
shell: bash
run: |
cmake --build build --config $BUILD_TYPE
- name: Build Integration tests
shell: bash
run: |
cd tests/cpp
cmake --build build --config $BUILD_TYPE
- name: Tests
shell: bash
run: bash .github/launch-tests
- name: Organize files for upload
shell: bash
run: |
mkdir -p artifact/lib
cp build/ark artifact
cp build/libArkReactor.a artifact
cp lib/*.arkm artifact/lib
cp -r lib/std/ artifact/lib
rm -rf artifact/lib/std/{.git,.github,tests/__arkscript__}
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ark-linux-gcc-version
path: artifact