Build and test #10
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 and test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: | | |
sudo add-apt-repository ppa:bartbes/love-stable | |
sudo apt update | |
sudo apt install luajit liblove | |
# vcpkg install ffmpeg --triplet x64-linux-dynamic | |
#run: sudo apt install libavformat-dev libavcodec-dev libswresample-dev libswscale-dev libavutil-dev | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DVIDEO_EXPORT=0 | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Install | |
run: cmake --install ${{github.workspace}}/build | |
- name: Test | |
working-directory: ${{github.workspace}} | |
run: luajit test/main.lua |