forked from obsidian-level-maker/Obsidian
-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (70 loc) · 2.46 KB
/
Copy pathcmake-release.yml
File metadata and controls
83 lines (70 loc) · 2.46 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: CMake-Release
on:
release:
types: [prereleased]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
# The number of days to retain artifacts
RETENTION_DAYS: 30
jobs:
build-win32:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y mingw-w64
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=Toolchain-mingw32.cmake
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- uses: actions/upload-artifact@v4
with:
name: obsidian-win32
path: |
${{github.workspace}}/addons
${{github.workspace}}/data
${{github.workspace}}/engines
${{github.workspace}}/games
${{github.workspace}}/language
${{github.workspace}}/modules
${{github.workspace}}/ports
${{github.workspace}}/presets
${{github.workspace}}/scripts
${{github.workspace}}/theme
${{github.workspace}}/tools
${{github.workspace}}/obsidian.exe
retention-days: ${{env.RETENTION_DAYS}}
build-win64:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y mingw-w64
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=Toolchain-mingw64.cmake
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- uses: actions/upload-artifact@v4
with:
name: obsidian-win64
path: |
${{github.workspace}}/addons
${{github.workspace}}/data
${{github.workspace}}/engines
${{github.workspace}}/games
${{github.workspace}}/language
${{github.workspace}}/modules
${{github.workspace}}/ports
${{github.workspace}}/presets
${{github.workspace}}/scripts
${{github.workspace}}/theme
${{github.workspace}}/tools
${{github.workspace}}/obsidian.exe
retention-days: ${{env.RETENTION_DAYS}}