Skip to content

Commit

Permalink
cpmfile
Browse files Browse the repository at this point in the history
  • Loading branch information
skaji committed May 20, 2021
1 parent 78960fa commit 3a7d7d3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN mkdir -p \
/usr/local/lib64
RUN curl -fsSL https://git.io/perl-install | bash -s /perl
RUN curl -fsSL --compressed -o /cpm https://git.io/cpm
COPY build/relocatable-perl-build build/cpanfile BUILD_VERSION /
COPY build/relocatable-perl-build build/cpm.yml BUILD_VERSION /
RUN /perl/bin/perl /cpm install -g
RUN /perl/bin/perl /relocatable-perl-build --perl_version $(cat /BUILD_VERSION) --prefix /opt/perl
RUN /opt/perl/bin/perl /cpm install -g App::cpanminus App::ChangeShebang
Expand Down
4 changes: 0 additions & 4 deletions build/cpanfile

This file was deleted.

7 changes: 7 additions & 0 deletions build/cpm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
prereqs:
runtime:
requires:
CPAN::Perl::Releases::MetaCPAN:
Devel::PatchPerl:
HTTP::Tinyish:
IPC::Run3:
2 changes: 1 addition & 1 deletion build/github-actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mac_build_perl() {
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
curl -fsSL https://git.io/perl-install | bash -s ~/perl
curl -fsSL --compressed -o ~/cpm https://git.io/cpm
~/perl/bin/perl ~/cpm install -g --cpanfile build/cpanfile
~/perl/bin/perl ~/cpm install -g --cpmfile build/cpm.yml
sudo install -m 755 -o $USER -g staff -d /opt/perl
~/perl/bin/perl build/relocatable-perl-build --prefix /opt/perl --perl_version $(cat BUILD_VERSION)
/opt/perl/bin/perl ~/cpm install -g App::cpanminus App::ChangeShebang
Expand Down

0 comments on commit 3a7d7d3

Please sign in to comment.