Implement language files #169
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Builds Open Manifold, but only the bare executable | |
# Release builds are made in a separate yaml | |
name: Build Test | |
on: | |
push: | |
branches: ["main"] | |
paths: src/** | |
pull_request: | |
branches: ["main"] | |
paths: src/** | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev | |
- name: Build package | |
run: | | |
make | |
- name: Upload package | |
uses: actions/[email protected] | |
with: | |
name: Open-Manifold-git-linux | |
path: bin | |
retention-days: 1 | |
build-macos: | |
runs-on: macOS-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get dependencies | |
run: | | |
brew install SDL2 SDL2_image SDL2_mixer | |
- name: Build package | |
run: | | |
make LDFLAGS:="-lSDL2 -lSDL2_image -lSDL2_mixer" | |
- name: Upload package | |
uses: actions/[email protected] | |
with: | |
name: Open-Manifold-git-macOS | |
path: bin | |
retention-days: 1 | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup directories | |
run: | | |
mkdir SDL2-dl | |
mkdir lib | |
- name: Download SDL2 | |
uses: albin-johansson/download-sdl2@v2 | |
with: | |
version: 2.0.18 | |
sources_destination: SDL2-dl | |
binaries_destination: . | |
- name: Download SDL2 Image | |
uses: albin-johansson/download-sdl2-image@v2 | |
with: | |
version: 2.0.5 | |
sources_destination: SDL2-dl | |
binaries_destination: . | |
- name: Download SDL2 Mixer | |
uses: albin-johansson/download-sdl2-mixer@v1 | |
with: | |
version: 2.6.2 | |
sources_destination: SDL2-dl | |
binaries_destination: . | |
- name: Configure SDL2 | |
run: | | |
mkdir include/SDL2 | |
Copy-Item -Force SDL2-dl/SDL2-2.0.18/include/* include/SDL2 | |
Copy-Item -Force SDL2-dl/SDL2_image-2.0.5/include/* include/SDL2 | |
Copy-Item -Force SDL2-dl/SDL2_mixer-2.6.2/include/* include/SDL2 | |
Copy-Item -Force SDL2-dl/SDL2-2.0.18/lib/x64/* lib | |
Copy-Item -Force SDL2-dl/SDL2_image-2.0.5/lib/x64/* lib | |
Copy-Item -Force SDL2-dl/SDL2_mixer-2.6.2/lib/x64/* lib | |
dir lib | |
- name: Build package | |
run: | | |
make LDFLAGS:="-Llib -static-libgcc -static-libstdc++ -lSDL2main -lSDL2 -lSDL2_image -lSDL2_mixer -lstdc++fs" | |
- name: Upload package | |
uses: actions/[email protected] | |
with: | |
name: Open-Manifold-git-win64 | |
path: bin | |
retention-days: 1 |