name: CI on: push: branches: [ "6" ] pull_request: branches: [ "6" ] jobs: build-linux: name: build-linux-amd64 runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 with: submodules: 'recursive' - name: "Install Dependencies" run: | sudo apt update sudo apt install libgl1-mesa-dev qt6-base-dev libqt6core5compat6-dev - name: "Configure" run: | mkdir -p build cd build cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX:PATH=../install/DevLauncher \ -DBUILD_NUMBER="$GITHUB_RUN_NUMBER" \ -DLauncher_BUILD_PLATFORM=lin64 \ -DLauncher_EMBED_SECRETS=Off \ .. # This uses https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions#setting-an-output-parameter # ::set-output name=version::1.2.3.4 - name: "Get Version" id: getversion run: | cd build make ga_version - name: "Build" run: | cd build make -j$(nproc) - name: "Install" run: | cd build make install - name: "Package" env: APP_VERSION: ${{ steps.getversion.outputs.version }} run: | cd install zip -r DevLauncher-${APP_VERSION}-linux-amd64.zip DevLauncher - name: "Upload Artifacts" uses: actions/upload-artifact@v3 with: name: DevLauncher-linux-amd64 path: install/DevLauncher-*.zip