-
Notifications
You must be signed in to change notification settings - Fork 33
61 lines (50 loc) · 1.61 KB
/
ci.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
name: Continuous integration
on: [push, pull_request]
jobs:
linux:
runs-on: ubuntu-20.04
name: Linux (Release)
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qqq build-essential cmake ninja-build
- name: Build and install using CMake
env:
CMAKE_GENERATOR: Ninja
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
sudo cmake --build build --target install
- name: Run the compiled and installed binary (smoke test)
run: |
godotpcktool --help
- uses: actions/upload-artifact@v4
with:
name: godotpcktool-linux-x86_64-glibc2.31
path: build/src/godotpcktool
windows:
runs-on: ubuntu-20.04
name: Windows (MinGW, Release)
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qqq build-essential cmake ninja-build gcc-mingw-w64 g++-mingw-w64
- name: Build and install using CMake
env:
CMAKE_GENERATOR: Ninja
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=cmake/mingw-w64-x86_64.cmake
cmake --build build
sudo cmake --build build --target install
- uses: actions/upload-artifact@v4
with:
name: godotpcktool-windows-x86_64
path: build/src/godotpcktool.exe