forked from Sidenai/hyperion-disassembler
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (52 loc) · 1.72 KB
/
Copy pathcmake-multi-platform.yml
File metadata and controls
63 lines (52 loc) · 1.72 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
name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
BUILD_TYPE: Release
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev libwayland-dev libxkbcommon-dev
- name: Configure
run: cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=${{ runner.os == 'Windows' && 'C:/vcpkg/scripts/buildsystems/vcpkg.cmake' || '/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake' }} -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
- name: Build
run: cmake --build build --config ${{ env.BUILD_TYPE }}
- name: Hash (Windows)
if: runner.os == 'Windows'
run: |
$hash = (Get-FileHash build/Release/Hyperion.exe -Algorithm SHA256).Hash
echo "SHA256: $hash" | Tee-Object -FilePath build/Release/SHA256.txt
shell: pwsh
- name: Upload artifact (Windows)
if: runner.os == 'Windows'
uses: actions/upload-artifact@v4
with:
name: Hyperion-Windows-x64
path: |
build/Release/Hyperion.exe
build/Release/SHA256.txt
- name: Upload artifact (Linux)
if: runner.os == 'Linux'
uses: actions/upload-artifact@v4
with:
name: Hyperion-Linux-x64
path: build/Hyperion
- name: Upload artifact (macOS)
if: runner.os == 'macOS'
uses: actions/upload-artifact@v4
with:
name: Hyperion-macOS
path: build/Hyperion