mirror of
https://github.com/Ed94/VEFontCache-Odin.git
synced 2025-08-06 06:52:44 -07:00
63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
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: List directory contents
|
|
run: ls -R
|
|
|
|
- name: Check for Git and install if necessary
|
|
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
|
|
|
|
- name: Set up environment
|
|
run: |
|
|
brew install bash
|
|
echo "Bash version: $(bash --version)"
|
|
|
|
# - name: Check build script
|
|
# run: |
|
|
# ls -l ./scripts/build_sokol_demo.sh || echo "build_sokol_demo.sh not found in ./scripts/"
|
|
|
|
- name: Run build script
|
|
run: |
|
|
if [ -f "./scripts/build_sokol_demo.sh" ]; then
|
|
chmod +x ./scripts/build_sokol_demo.sh
|
|
./scripts/build_sokol_demo.sh
|
|
else
|
|
echo "Error: build_sokol_demo.sh not found"
|
|
exit 1
|
|
fi
|
|
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
|