mirror of
https://github.com/Ed94/VEFontCache-Odin.git
synced 2025-08-06 06:52:44 -07:00
81 lines
3.0 KiB
YAML
81 lines
3.0 KiB
YAML
name: Odin
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
runs-on: ${{matrix.os}}
|
|
# NOTE: odin macos and ubuntu releases are zipped twice, so this is bit of a hack.
|
|
# The examples folder also conflicts with the sokol examples, so we just remove it.
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
- uses: ilammy/msvc-dev-cmd@v1
|
|
- if: runner.os == 'Linux'
|
|
name: prepare-linux
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install libglu1-mesa-dev mesa-common-dev xorg-dev libasound-dev
|
|
wget https://apt.llvm.org/llvm.sh
|
|
chmod +x llvm.sh
|
|
echo "/usr/lib/llvm-17/bin" >> $GITHUB_PATH
|
|
curl -L https://github.com/odin-lang/Odin/releases/download/dev-2024-04/odin-ubuntu-amd64-dev-2024-04.zip --output odin.zip
|
|
unzip odin.zip
|
|
unzip dist.zip
|
|
rm -r ./dist/examples
|
|
mv ./dist/* ./
|
|
chmod a+x ./odin
|
|
cd sokol
|
|
chmod a+x ./build_clibs_linux.sh
|
|
./build_clibs_linux.sh
|
|
cd ..
|
|
- if: runner.os == 'macOS'
|
|
name: prepare-macos
|
|
run: |
|
|
brew install llvm@17
|
|
curl -L https://github.com/odin-lang/Odin/releases/download/dev-2024-04/odin-macos-amd64-dev-2024-04.zip --output odin.zip
|
|
unzip odin.zip
|
|
unzip dist.zip
|
|
rm -r ./dist/examples
|
|
mv ./dist/* ./
|
|
chmod a+x ./odin
|
|
cd sokol
|
|
chmod a+x ./build_clibs_macos.sh
|
|
./build_clibs_macos.sh
|
|
./build_clibs_macos_dylib.sh
|
|
cd ..
|
|
- if: runner.os == 'Windows'
|
|
name: prepare-windows
|
|
shell: cmd
|
|
run: |
|
|
curl -L https://github.com/odin-lang/Odin/releases/download/dev-2024-04/odin-windows-amd64-dev-2024-04.zip --output odin.zip
|
|
unzip odin.zip
|
|
cd sokol
|
|
build_clibs_windows.cmd
|
|
cd ..
|
|
- name: build
|
|
run: |
|
|
./odin build examples/blend -debug
|
|
./odin build examples/bufferoffsets -debug
|
|
./odin build examples/clear -debug
|
|
./odin build examples/cube -debug
|
|
./odin build examples/debugtext -debug
|
|
./odin build examples/debugtext-print -debug
|
|
./odin build examples/debugtext-userfont -debug
|
|
./odin build examples/instancing -debug
|
|
./odin build examples/mrt -debug
|
|
./odin build examples/noninterleaved -debug
|
|
./odin build examples/offscreen -debug
|
|
./odin build examples/quad -debug
|
|
./odin build examples/saudio -debug
|
|
./odin build examples/sgl -debug
|
|
./odin build examples/sgl-context -debug
|
|
./odin build examples/sgl-points -debug
|
|
./odin build examples/shapes -debug
|
|
./odin build examples/texcube -debug
|
|
./odin build examples/triangle -debug
|
|
./odin build examples/vertexpull -debug
|
|
./odin build examples/instancing-compute -debug
|