Test CI #1245
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: "Snapcraft build" | |
on: | |
push: | |
paths-ignore: | |
- 'msvc*/**' | |
- 'check/**' | |
- 'doc/**' | |
- 'packaging/**' | |
- '*.md' | |
- 'check/**' | |
- 'default/**' | |
- 'test-scripting/**' | |
pull_request: | |
paths-ignore: | |
- 'msvc*/**' | |
- 'check/**' | |
- 'doc/**' | |
- 'packaging/**' | |
- '*.md' | |
- 'check/**' | |
- 'default/**' | |
- 'test-scripting/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Build snap package | |
uses: snapcore/action-build@v1 | |
id: snapcraft | |
- name: Install built snap package | |
run: | | |
sudo snap install --dangerous ${{ steps.snapcraft.outputs.snap }} | |
- name: Install dependencies for test launch | |
run: | | |
sudo apt update -y | |
sudo apt install -y mesa-utils libgl1-mesa-dri libglx-mesa0 | |
- name: Test freeorion launch | |
uses: coactions/setup-xvfb@v1 | |
with: | |
run: /bin/bash .github/snap-xvfb-launch.sh | |