Skip to content

Commit 48f2b3e

Browse files
committed
Added build canary workflow.
Updated paths for existing workflows.
1 parent a33ad8d commit 48f2b3e

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build Canary
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
branches:
7+
- main
8+
paths:
9+
- 'includes/**/*'
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
build-canary-linux:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Check out repository
22+
uses: actions/checkout@v4
23+
24+
- name: Build Release
25+
run: |
26+
mkdir -p build
27+
g++ -std=c++17 -shared -fPIC -o build/libRhythmGameUtilities.so includes/RhythmGameUtilities/RhythmGameUtilities.cpp
28+
build-canary-macos:
29+
runs-on: macos-latest
30+
31+
steps:
32+
- name: Check out repository
33+
uses: actions/checkout@v4
34+
35+
- name: Build Release
36+
run: |
37+
mkdir -p build
38+
g++ -std=c++17 -shared -fPIC -arch arm64 -o build/libRhythmGameUtilities-arm64.dylib includes/RhythmGameUtilities/RhythmGameUtilities.cpp
39+
g++ -std=c++17 -shared -fPIC -arch x86_64 -o build/libRhythmGameUtilities-x86_64.dylib includes/RhythmGameUtilities/RhythmGameUtilities.cpp
40+
lipo -create -output build/libRhythmGameUtilities.dylib build/libRhythmGameUtilities-arm64.dylib build/libRhythmGameUtilities-x86_64.dylib
41+
lipo -info build/libRhythmGameUtilities.dylib
42+
build-canary-windows:
43+
runs-on: windows-latest
44+
45+
steps:
46+
- name: Check out repository
47+
uses: actions/checkout@v4
48+
49+
- name: Build Release
50+
shell: cmd
51+
run: |
52+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
53+
mkdir -p build
54+
cl /EHsc /std:c++17 /c includes/RhythmGameUtilities/RhythmGameUtilities.cpp /Fo:build\RhythmGameUtilities.obj
55+
link /DLL /MACHINE:X64 /OUT:build\libRhythmGameUtilities.dll /IMPLIB:build\libRhythmGameUtilities.lib build\RhythmGameUtilities.obj
56+
del build\RhythmGameUtilities.obj

.github/workflows/test.workflow.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
types: [opened, synchronize, reopened, ready_for_review]
1414
branches:
1515
- main
16+
paths:
17+
- 'includes/**/*'
18+
- 'tests/**/*'
19+
- 'RhythmGameUtilities/**/*'
20+
- 'RhythmGameUtilities.Tests/**/*'
1621
workflow_dispatch:
1722

1823
jobs:

0 commit comments

Comments
 (0)