Skip to content

Commit

Permalink
Merge pull request #157 from kolyshkin/fix-packages
Browse files Browse the repository at this point in the history
ci: fix not honoring PACKAGES setting in gha Windows runners
  • Loading branch information
thaJeztah authored Sep 23, 2024
2 parents 4a1fbfe + eaecf09 commit 29394de
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,22 @@ jobs:
go-version: [1.18.x, 1.22.x, 1.23.x]
platform: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, windows-latest, macos-12, macos-14]
runs-on: ${{ matrix.platform }}
defaults:
run:
shell: bash
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- if: ${{ matrix.go-version == '1.18.x' }}
- name: Set PACKAGES env
if: ${{ matrix.go-version == '1.18.x' }}
run: |
# This corresponds with the list in Makefile:1, but omits the "userns"
# and "capability" modules, which require go1.21 as minimum.
echo 'PACKAGES="mountinfo mount sequential signal symlink user"' >> $GITHUB_ENV
echo 'PACKAGES=mountinfo mount sequential signal symlink user' >> $GITHUB_ENV
- name: go mod tidy
run: |
make foreach CMD="go mod tidy"
Expand Down

0 comments on commit 29394de

Please sign in to comment.