update for latest gamescope-session-plus #14
Workflow file for this run
This file contains hidden or 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: Test gamescope-session | |
| on: | |
| push: | |
| branches-ignore: | |
| - main | |
| paths: | |
| - 'gamescope-session/**' | |
| jobs: | |
| test: | |
| name: Test gamescope-session RPM build | |
| runs-on: ubuntu-22.04 | |
| container: | |
| image: fedora:41 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install RPM build dependencies | |
| run: dnf install -y copr-cli rpm-build rpmdevtools | |
| - name: Create the necessary RPM build directories | |
| run: mkdir -p ~/rpmbuild/SOURCES/ | |
| - name: Copy internal source files | |
| run: cp ${GITHUB_WORKSPACE}/gamescope-session/* ~/rpmbuild/SOURCES/ | |
| - name: Download external source files | |
| run: spectool -g -R ${GITHUB_WORKSPACE}/gamescope-session/gamescope-session.spec | |
| - name: Build the source RPM | |
| run: rpmbuild -bs ${GITHUB_WORKSPACE}/gamescope-session/gamescope-session.spec | |
| - name: Install the DNF build dependencies plugin | |
| run: dnf -y install 'dnf-command(builddep)' | |
| - name: Install the required build dependencies. | |
| run: dnf builddep -y ${GITHUB_WORKSPACE}/gamescope-session/gamescope-session.spec | |
| - name: Build the binary RPM | |
| run: rpmbuild -bb ${GITHUB_WORKSPACE}/gamescope-session/gamescope-session.spec | |
| - name: Install RPMs | |
| run: dnf -y install ~/rpmbuild/RPMS/*/*.rpm |