games-misc/the-honkers-railway-launcher: add 1.8.2 #1
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: Test build changed packages on pr | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
extract_changed_files: | ||
name: Extract files changed in a PR | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/johnthecoolingfan/gentoo-action-image:desktop | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Run pkgcheck scan | ||
working-directory: ./repo/games-misc/${{ inputs.package }} | ||
run: pkgcheck scan | ||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v45 | ||
- name: Filter changed files | ||
id: ebuild-files | ||
env: | ||
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | ||
run: | | ||
echo "::set-output name=matrix::$(printf '%s\n' "${ALL_CHANGED_FILES[@]}" | grep '\.ebuild$' | jq -R . | jq -sc .)" | ||
test_changed_packages: | ||
name: Test build changed packages | ||
runs-on: ubuntu-latest | ||
needs: extract_changed_files | ||
container: | ||
image: ghcr.io/johnthecoolingfan/gentoo-action-image:desktop | ||
defaults: | ||
run: | ||
shell: bash | ||
strategy: | ||
package: ${{ fromJson(needs.extract_changed_files.outputs.matrix) }} | ||
Check failure on line 53 in .github/workflows/check_pr.yml GitHub Actions / Test build changed packages on prInvalid workflow file
|
||
env: | ||
PACKAGE_FILE: ${{ matrix.package }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install repo | ||
run: | | ||
./.github/workflow-utils/add-repo.sh ./ | ||
- name: bash var shenanigans | ||
run: | | ||
echo "PACKAGE_FILENAME=$(basename ${PACKAGE_FILE})" >> $GITHUB_ENV | ||
- name: Install dependencies of the package | ||
run: | | ||
emerge --autounmask y --autounmask-continue y --onlydeps "=games-misc/${PACKAGE_FILENAME#.ebuild}" | ||
- name: Try to build and install (merge) the package | ||
run: | | ||
emerge --autounmask y --autounmask-continue y "=games-misc/${PACKAGE_FILENAME#.ebuild}" |