Merge pull request #89 from hexagonrecursion/factory-example #191
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 data | |
on: [push, pull_request] | |
jobs: | |
build_data: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Colobot dependencies | |
run: sudo apt-get install -y --no-install-recommends vorbis-tools | |
- uses: actions/checkout@v3 | |
- name: Create build directory | |
run: cmake -E make_directory build | |
- name: Run CMake | |
working-directory: build | |
run: cmake -DCMAKE_INSTALL_PREFIX=/install -DCOLOBOT_INSTALL_DATA_DIR=/install/data .. | |
- name: Build | |
working-directory: build | |
run: make | |
- name: Install | |
working-directory: build | |
run: DESTDIR=. make install | |
- name: Upload build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: data | |
path: build/install |