This repository has been archived by the owner on Jun 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
89 lines (76 loc) · 2.15 KB
/
builds.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Building
on:
push:
paths:
- "src/**"
- "lib/**"
- "tests/**"
- "cmake/**"
- ".github/workflows/builds.yml"
pull_request:
paths:
- "src/**"
- "lib/**"
- "tests/**"
- "cmake/**"
- ".github/workflows/builds.yml"
jobs:
build-ubuntu:
name: Build Ubuntu 20.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build ${{github.workspace}}/build
- name: Save binary
uses: actions/upload-artifact@v3
with:
name: filc-ubuntu20
path: ${{github.workspace}}/build/src/filc
retention-days: 5
build-macos:
name: Build MacOS 12
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build ${{github.workspace}}/build
- name: Save binary
uses: actions/upload-artifact@v3
with:
name: filc-macos12
path: ${{github.workspace}}/build/src/filc
retention-days: 5
build-windows:
name: Build Windows 2022
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build ${{github.workspace}}/build --config Release
- name: Locate binary
run: dir ${{github.workspace}}/build
# - name: Save binary
# uses: actions/upload-artifact@v3
# with:
# name: filc-windows2022
# path: ${{github.workspace}}/build/?
# retention-days: 5