Skip to content

Bump gamescope to new tag 3.12.5 #186

Bump gamescope to new tag 3.12.5

Bump gamescope to new tag 3.12.5 #186

Workflow file for this run

name: build package
on:
push:
branches: [ main, gha ]
tags: [ 'v*' ]
pull_request:
branches: [ main ]
jobs:
package:
runs-on: ubuntu-latest
# container: archlinux:base-devel
steps:
- name: prepare build deps
run: |
sudo apt-get install -y pandoc lintian
- uses: actions/checkout@v3
with:
submodules: recursive
- name: prepare
uses: ./.github/actions/cachetar
- name: podman test
run: |
id -a
cat /etc/subuid
cat /etc/subgid
- name: container apt cache
uses: actions/cache/restore@v3
env:
PATH: /cachetar:/usr/local/bin:/usr/bin:/bin
with:
path: ubuntu_22.04/.cache
key: ubuntu_22.04-apt-cache-${{ github.run_id }}
restore-keys: |
ubuntu_22.04-apt-cache
- name: container image cache
uses: actions/cache/restore@v3
env:
PATH: /cachetar:/usr/local/bin:/usr/bin:/bin
with:
path: ~/.local/share/containers/storage
key: ubuntu_22.04-podman-cache-${{ github.run_id }}
restore-keys: |
ubuntu_22.04-podman-cache
- name: deps cache
uses: actions/cache/restore@v3
env:
PATH: /cachetar:/usr/local/bin:/usr/bin:/bin
with:
path: ubuntu_22.04/01-deps/packages
key: ubuntu_22.04-deps-cache-${{ github.run_id }}
restore-keys: |
ubuntu_22.04-deps-cache
- name: Build deps image
run: |
cd ubuntu_22.04/01-deps
make image
- name: Build deps
run: |
cd ubuntu_22.04/01-deps
make
- name: Build gamescope build image
run: |
cd ubuntu_22.04/02-gamescope
make image
- name: Build gamescope
run: |
(cd gamescope; git fetch --tags --no-recurse-submodules)
cd ubuntu_22.04/02-gamescope
make
- name: Build package
run: |
git fetch --tags --no-recurse-submodules --force
cd ubuntu_22.04/03-package
make
- name: Publish artifact
uses: actions/upload-artifact@v3
with:
name: gamescope-deb
path: ubuntu_22.04/03-package/*.deb
- name: Lint package
run: |
cd ubuntu_22.04/03-package
make lint
- name: Test install package
run: |
cd ubuntu_22.04/03-package
make test-install
- name: save container image cache
uses: actions/cache/save@v3
if: always()
env:
PATH: /cachetar:/usr/local/bin:/usr/bin:/bin
with:
path: ~/.local/share/containers/storage
key: ubuntu_22.04-podman-cache-${{ github.run_id }}
- name: save deps cache
uses: actions/cache/save@v3
if: always()
env:
PATH: /cachetar:/usr/local/bin:/usr/bin:/bin
with:
path: ubuntu_22.04/01-deps/packages
key: ubuntu_22.04-deps-cache-${{ github.run_id }}
- name: save apt cache
uses: actions/cache/save@v3
if: always()
env:
PATH: /cachetar:/usr/local/bin:/usr/bin:/bin
with:
path: ubuntu_22.04/.cache
key: ubuntu_22.04-apt-cache-${{ github.run_id }}
release:
if: startsWith(github.ref, 'refs/tags/v')
needs: package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: gamescope-deb
path: ubuntu_22.04/03-package/
- name: Publish github release
run: |
git fetch --tags --force
make github_release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}