ci: install deps on windows #36
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: build-linux | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Install Dependencies | |
run: sudo apt install libxmu-dev libxi-dev libgl-dev libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev make ninja-build | |
- name: Configure CMake | |
run: cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j | |
- name: Install | |
run: | | |
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -t install | |
rm -f ${{github.workspace}}/install/README.md | |
mv ${{github.workspace}}/install ${{github.workspace}}/shadertoy-linux-x86_64 | |
tar -zcvf ${{github.workspace}}/shadertoy-linux-x86_64.tar.gz --directory ${{github.workspace}} shadertoy-linux-x86_64 | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: build-linux | |
path: ${{github.workspace}}/shadertoy-linux-x86_64.tar.gz | |
if-no-files-found: error | |