forked from septag/glslcc
-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (72 loc) · 1.89 KB
/
build.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
name: build
on:
push:
paths-ignore:
'.github/workflows/dist.yml'
jobs:
win64:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: build
shell: pwsh
run: |
cmake -B build
cmake --build build --config Release --target glslcc
- name: Upload
uses: actions/upload-artifact@v4
with:
path: ./build/src/Release/glslcc.exe
name: glslcc-win64
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: build
shell: pwsh
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release --target glslcc
- name: Upload
uses: actions/upload-artifact@v4
with:
path: ./build/src/glslcc
name: glslcc-linux
osx-arm64:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.3'
- name: build
shell: pwsh
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15"
cmake --build build --config Release --target glslcc
lipo -info ./build/src/glslcc
- name: Upload
uses: actions/upload-artifact@v4
with:
path: ./build/src/glslcc
name: glslcc-osx-arm64
osx-x64:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.2'
- name: build
shell: pwsh
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15"
cmake --build build --config Release --target glslcc
lipo -info ./build/src/glslcc
- name: Upload
uses: actions/upload-artifact@v4
with:
path: ./build/src/glslcc
name: glslcc-osx-x64