-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.46 KB
/
macos_build.yaml
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
name: MacOS Build
on:
push:
branches:
- '**'
- '**'
pull_request:
branches:
- '**'
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up environment
run: |
if ! command -v git &> /dev/null; then
echo "Git not found. Installing Git..."
brew install git
else
echo "Git is already installed."
fi
git --version
brew install bash
echo "Bash version: $(bash --version)"
brew install freetype
brew install harfbuzz
brew install odin
make -C "/opt/homebrew/Cellar/odin/2024-12/libexec/vendor/stb/src"
- name: Run build script
run: |
echo "Setting execute permissions on specific .sh files"
chmod +x ./scripts/build_sokol_demo.sh
chmod +x ./scripts/build_sokol_library.sh
chmod +x ./scripts/compile_sokol_shaders.sh
chmod +x ./scripts/clean.sh
chmod +x ./scripts/helpers/misc.sh
chmod +x ./scripts/helpers/odin_compiler_defs.sh
echo "Running build_sokol_demo.sh"
./scripts/build_sokol_demo.sh
shell: bash
- name: List build artifacts
run: ls -R ./build || echo "build directory not found"
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: macos-build
path: ./build/
if-no-files-found: warn