Bump version to 0.9.0 #7
Workflow file for this run
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 releases whenever a tag is created | |
name: Build Release | |
on: | |
push: | |
tags: | |
- '*' | |
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 pkg | |
- name: Upload package | |
uses: actions/[email protected] | |
with: | |
name: Open-Manifold-${{ github.ref_name }}-linux | |
path: release-tmp | |
retention-days: 14 | |
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 pkg LDFLAGS:="-lSDL2 -lSDL2_image -lSDL2_mixer" | |
- name: Upload package | |
uses: actions/[email protected] | |
with: | |
name: Open-Manifold-${{ github.ref_name }}-macOS | |
path: release-tmp | |
retention-days: 14 | |
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 pkg 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-${{ github.ref_name }}-win64 | |
path: release-tmp | |
retention-days: 14 |