Skip to content

Commit

Permalink
Again
Browse files Browse the repository at this point in the history
  • Loading branch information
VexedUXR committed Nov 13, 2024
1 parent 5d8c5ff commit bd2e0a6
Showing 1 changed file with 26 additions and 11 deletions.
37 changes: 26 additions & 11 deletions .github/workflows/cross-bootstrap-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,40 @@ permissions:
contents: read

jobs:
modified_files:
name: get modified files
setup:
name: Setup
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.changes.outputs.files }}
archs: sup
steps:
- uses: actions/checkout@v4
- name: get modified files
- uses: dorny/paths-filter@v3
id: changes
run: |
echo "files=$(git diff --name-only --diff-filter=ACMRT ${{ github.event.push.before }} ${{ github.sha }} | xargs)"
echo "files=$(git diff --name-only --diff-filter=ACMRT ${{ github.event.push.before }} ${{ github.sha }} | xargs)" >> $GITHUB_OUTPUT
with:
base: ${{ github.ref_name }}
filters: |
amd64:
- 'sys/amd64'
arm64:
- 'sys/arm64'
all:
- '**/cross-bootstrap-tools.yml'
- run: |
archs=()
if ${{ steps.changes.outputs.all }}; then
archs+=(amd64 arm64 powerpc riscv)
else if ${{ steps.changes.outputs.amd64}}; then
archs+=(amd64)
fi if ${{ steps.changes.outputs.arm64 }}; then
archs+=(arm64)
fi fi
echo ${archs[*]}
exit 1
shell: bash
build:
name: ${{ matrix.target_arch }} buildkernel on ${{ matrix.os }} (${{ matrix.compiler }})
runs-on: ${{ matrix.os }}
needs: modified_files
needs: setup
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -87,9 +105,6 @@ jobs:
target: powerpc
steps:
- uses: actions/checkout@v4
- name: check modified files
run: |
echo ${{ needs.modified_files.outputs.changes }} && exit 1
- name: install packages (Ubuntu)
if: runner.os == 'Linux'
run: |
Expand Down

0 comments on commit bd2e0a6

Please sign in to comment.