forked from miyagawa/cpanminus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up CI, and some tweaks to dist.ini and maint scripts
- Set up Github Workflow for testing and release on tag - Add maint/setup-ci.sh script to set up CI environment - Tweak maint/bump_fatpack.pl so it handles non-minified fatpacked modules - Remove maint/merge_master.pl from dist.ini since it runs git operations
- Loading branch information
Showing
4 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Main | ||
|
||
on: push | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install build deps | ||
run: | | ||
maint/setup-ci.sh | ||
echo PERL5LIB=$(pwd)/local/lib/perl5 >> "$GITHUB_ENV" | ||
echo PATH=$(pwd)/local/bin:$PATH >> "$GITHUB_ENV" | ||
- name: Build | ||
id: build | ||
run: | | ||
dzil build | ||
echo "tarball=$(ls App-cpanminus-*.tar.gz)" >> "$GITHUB_OUTPUT" | ||
- name: Test installing Mojolicious | ||
run: | | ||
./cpanm Mojolicious | ||
env PERL5LIB=$HOME/perl5/lib/perl5 perl -MMojolicious -E 'say $Mojolicious::VERSION' | ||
- name: Release if tag | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
${{ steps.build.outputs.tarball }} | ||
cpanm | ||
LICENSE |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex -o pipefail | ||
|
||
curl -fsSL https://raw.githubusercontent.com/skaji/cpm/main/cpm | \ | ||
perl - install \ | ||
Dist::Zilla Dist::Zilla::PluginBundle::Milla \ | ||
Dist::Zilla::Plugin::Run::BeforeBuild \ | ||
App::FatPacker \ | ||
Perl::Version |