Jesse/feature/view distance #447
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
name: CI | |
on: | |
push: | |
tags: ["*"] | |
branches: [ "master", "develop" ] | |
pull_request: | |
branches: [ "develop" ] | |
jobs: | |
build-ubuntu-22: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Install Deps | |
run: sudo apt update && sudo apt install freeglut3-dev libx11-dev clang-15 | |
- name: Build | |
run: ./make.sh | |
- name: Test | |
run: ./make.sh RunTests | |
build-and-release-ubuntu-20: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Install Deps | |
run: sudo apt update && sudo apt install freeglut3-dev libx11-dev clang | |
- name: Build | |
run: ./make.sh | |
- name: Test | |
run: ./make.sh RunTests | |
- name: Tar | |
if: startsWith(github.ref, 'refs/tags/') | |
run: ./make.sh BundleRelease | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
prerelease: true | |
files: | | |
Linux_x86_64_release.tar.gz | |
LICENSE | |
CHANGELOG.txt | |
build-and-release-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Set up MinGW | |
uses: egor-tensin/setup-mingw@v2 | |
with: | |
platform: x64 | |
version: 12.2.0 | |
- uses: actions/checkout@v3 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Build | |
shell: bash | |
run: ./make.sh | |
- name: Test | |
shell: bash | |
run: ./make.sh RunTests | |
- name: Tar | |
if: startsWith(github.ref, 'refs/tags/') | |
shell: bash | |
run: ./make.sh BundleRelease | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
prerelease: true | |
files: | | |
Windows_x86_64_release.tar.gz | |
LICENSE | |
CHANGELOG.txt |