eaphammer: fix dependencies #5492
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build Package | |
run: | | |
CHANGED_FILES=($(git diff --name-only --diff-filter=d $THE_LAST_COMMIT HEAD)) | |
for FILE in $CHANGED_FILES; do | |
if [[ $(basename $FILE) == "PKGBUILD" ]]; then | |
docker build -t builder -f travis/Dockerfile $(dirname $FILE) | |
docker run --rm builder | |
fi | |
done | |
pkgcheck: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pkgcheck-arch --user | |
- name: Check Styling | |
run: | | |
COMMIT_RANGE=($(git diff --name-only --diff-filter=d $(git log -2 --format=%H | tr '\n' ' '))) | |
CHANGED_FILES=($(git diff --name-only $COMMIT_RANGE)) | |
for FILE in $CHANGED_FILES; do | |
if [[ $(basename $FILE) == "PKGBUILD" ]]; then | |
pkgcheck $FILE | |
fi | |
done |