Skip to content

Commit

Permalink
work with distdir instead of tarball.
Browse files Browse the repository at this point in the history
Not sure what part of github workflow has changed, but having a
tarball in artifact (which itself is a zip-archive) would lead us to a
weird situation that the name of the directory instide the tarball
becomes the the as the the tarballs itself, and makes `tar xfz` always
fails.

I guess it can be bypassed by avoid making a tarball in the first place.
  • Loading branch information
gugod committed Jun 2, 2024
1 parent dd5a319 commit 2aa5082
Showing 1 changed file with 7 additions and 31 deletions.
38 changes: 7 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,19 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: cpanm --quiet --notest App::ModuleBuildTiny
- run: mbtiny dist
- run: echo ./App-perlbrew-*.tar.gz
- run: mbtiny distdir
- run: echo ./App-perlbrew-*
- uses: actions/upload-artifact@v4
with:
name: App-perlbrew-tarball
path: ./App-perlbrew-*.tar.gz
name: App-perlbrew-distdir
path: ./App-perlbrew-*
retention-days: 5

cpanm-dist:
needs: mbtiny-dist
strategy:
matrix:
version: ["5.38", "5.36", "5.34", "5.18"]
name: cpanm-dist-perl-${{ matrix.version }}
runs-on: ubuntu-latest
steps:
- uses: shogo82148/[email protected]
with:
perl-version: ${{ matrix.version }}
- uses: actions/download-artifact@v4
with:
name: App-perlbrew-tarball
- run: echo ./App-perlbrew-*.tar.gz
- run: cpanm --verbose ./App-perlbrew-*.tar.gz

cpanm-dist-in-container:
needs: mbtiny-dist
strategy:
matrix:
version: ["5.39"]
name: cpanm-dist-perl-${{ matrix.version }}
runs-on: ubuntu-latest
container:
image: perl:${{ matrix.version }}
steps:
- uses: actions/download-artifact@v4
with:
name: App-perlbrew-tarball
- run: echo ./App-perlbrew-*.tar.gz
- run: cpanm --verbose ./App-perlbrew-*.tar.gz
name: App-perlbrew-distdir
- run: echo ./App-perlbrew-*
- run: cpanm --verbose ./App-perlbrew-*

0 comments on commit 2aa5082

Please sign in to comment.