Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fiction #39

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/build_perl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
os:
- ubuntu-latest
- macos-latest
- windows-latest
- windows-2019
perl:
- 5.38.0
- 5.36.0
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
key: ${{ matrix.os }}-perl-v${{ matrix.perl }}${{ matrix.flags }}

- name: "Init dev env on Windows"
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-latest' }}
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-2019' }}
run: |
# skip installing perl if it is already installed.
if (!(Test-Path "C:\strawberry\perl\bin")) {
Expand All @@ -55,7 +55,7 @@ jobs:
"@ |
Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: "Build perl ${{ matrix.perl }} directly on Windows"
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-latest' }}
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-2019' }}
shell: cmd
run: >
git clone --depth 1 --branch v${{matrix.perl}} https://github.com/Perl/perl5.git
Expand All @@ -75,15 +75,15 @@ jobs:
set PATH=C:\Users\runneradmin\perl5\perlbrew\bin;%PATH%

- name: "Testing on chached perl ${{ matrix.os }}-${{ matrix.perl }}(${{ matrix.flags }})"
if: ${{ matrix.os == 'windows-latest' }}
if: ${{ matrix.os == 'windows-2019' }}
shell: cmd
run: |
set PATH=C:\Users\runneradmin\perl5\perlbrew\bin;%PATH%

perl -V

- name: "Build perl ${{ matrix.perl }} with perlbrew"
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os != 'windows-latest' }}
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os != 'windows-2019' }}
shell: bash
run: >
\curl -L https://install.perlbrew.pl | bash
Expand All @@ -97,7 +97,7 @@ jobs:
perlbrew install --switch --verbose --as cache-${{ matrix.os }}${{ matrix.perl }}${{ matrix.flags }} -j 12 --notest --noman ${{ matrix.flags }} perl-${{ matrix.perl }}

- name: "Testing on chached perl ${{ matrix.os }}-${{ matrix.perl }}(${{ matrix.flags }})"
if: ${{ matrix.os != 'windows-latest' }}
if: ${{ matrix.os != 'windows-2019' }}
shell: bash
run: |
source ~/perl5/perlbrew/etc/bashrc
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
os:
- ubuntu-latest
- macos-latest
- windows-latest
- windows-2019
perl:
- 5.38.0
- 5.36.0
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
key: ${{ matrix.os }}-perl-v${{ matrix.perl }}${{ matrix.flags }}

- name: "Init dev env on Windows"
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-latest' }}
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-2019' }}
run: |
# skip installing perl if it is already installed.
if (!(Test-Path "C:\strawberry\perl\bin")) {
Expand All @@ -63,7 +63,7 @@ jobs:
"@ |
Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: "Build perl ${{ matrix.perl }} directly on Windows"
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-latest' }}
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-2019' }}
shell: cmd
run: >
git clone --depth 1 --branch v${{matrix.perl}} https://github.com/Perl/perl5.git
Expand All @@ -83,7 +83,7 @@ jobs:
set PATH=C:\Users\runneradmin\perl5\perlbrew\bin;%PATH%

- name: "Install deps"
if: ${{ matrix.os == 'windows-latest' }}
if: ${{ matrix.os == 'windows-2019' }}
shell: cmd
run: |
set PATH=C:\Users\runneradmin\perl5\perlbrew\bin;%PATH%
Expand All @@ -93,7 +93,7 @@ jobs:
cpanm --installdeps --notest .

- name: "Testing on chached perl ${{ matrix.os }}-${{ matrix.perl }}(${{ matrix.flags }})"
if: ${{ matrix.os == 'windows-latest' }}
if: ${{ matrix.os == 'windows-2019' }}
shell: cmd
run: |
set PATH=C:\Users\runneradmin\perl5\perlbrew\bin;%PATH%
Expand All @@ -103,7 +103,7 @@ jobs:
cpanm --test-only -v .

- name: "Build perl ${{ matrix.perl }} with perlbrew"
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os != 'windows-latest' }}
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os != 'windows-2019' }}
shell: bash
run: >
\curl -L https://install.perlbrew.pl | bash
Expand All @@ -117,7 +117,7 @@ jobs:
perlbrew install --switch --verbose --as cache-${{ matrix.os }}${{ matrix.perl }}${{ matrix.flags }} -j 12 --notest --noman ${{ matrix.flags }} perl-${{ matrix.perl }}

- name: "Install deps"
if: ${{ matrix.os != 'windows-latest' }}
if: ${{ matrix.os != 'windows-2019' }}
shell: bash
run: |
source ~/perl5/perlbrew/etc/bashrc
Expand All @@ -131,7 +131,7 @@ jobs:
cpanm --installdeps --notest .

- name: "Testing on chached perl ${{ matrix.os }}-${{ matrix.perl }}(${{ matrix.flags }})"
if: ${{ matrix.os != 'windows-latest' }}
if: ${{ matrix.os != 'windows-2019' }}
shell: bash
run: |
source ~/perl5/perlbrew/etc/bashrc
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/cpan-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
os:
- ubuntu-latest
- macos-latest
- windows-latest
- windows-2019
perl:
- 5.38.0
- 5.36.0
Expand All @@ -41,7 +41,7 @@ jobs:
key: ${{ matrix.os }}-perl-v${{ matrix.perl }}${{ matrix.flags }}

- name: "Init dev env on Windows"
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-latest' }}
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-2019' }}
run: |
# skip installing perl if it is already installed.
if (!(Test-Path "C:\strawberry\perl\bin")) {
Expand All @@ -55,7 +55,7 @@ jobs:
Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: "Build perl ${{ matrix.perl }} directly on Windows"
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-latest' }}
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-2019' }}
shell: cmd
run: >
git clone --depth 1 --branch v${{matrix.perl}} https://github.com/Perl/perl5.git
Expand All @@ -74,7 +74,7 @@ jobs:
set PATH=C:\Users\runneradmin\perl5\perlbrew\bin;%PATH%

- name: "Build perl ${{ matrix.perl }} with perlbrew"
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os != 'windows-latest' }}
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os != 'windows-2019' }}
shell: bash
run: >
\curl -L https://install.perlbrew.pl | bash
Expand All @@ -90,15 +90,15 @@ jobs:
perlbrew clean

- name: "Testing on chached perl ${{ matrix.os }}-${{ matrix.perl }}(${{ matrix.flags }})"
if: ${{ matrix.os == 'windows-latest' }}
if: ${{ matrix.os == 'windows-2019' }}
shell: cmd
run: |
set PATH=C:\Users\runneradmin\perl5\perlbrew\bin;%PATH%

cpanm --test-only -v --mirror http://cpan.cpantesters.org/ Affix

- name: "Testing on chached perl ${{ matrix.os }}-${{ matrix.perl }}(${{ matrix.flags }})"
if: ${{ matrix.os != 'windows-latest' }}
if: ${{ matrix.os != 'windows-2019' }}
shell: bash
run: |
source ~/perl5/perlbrew/etc/bashrc
Expand Down
73 changes: 54 additions & 19 deletions .github/workflows/freebsd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: FreeBSD
name: "*BSD"

on:
push:
Expand All @@ -7,25 +7,60 @@ on:
branches: '*'

jobs:
perl-job:
runs-on: macos-12
name: FreeBSD Perl ${{matrix.perl}}
test:
runs-on: ${{ matrix.os.host }}
strategy:
fail-fast: false
matrix:
perl: [ '5.32' ]
perl: [ '5.38' ]
os:
- name: freebsd
architecture: x86-64
version: '13.2'
host: macos-12
pkg: pkg install -y

#~ - name: openbsd
#~ architecture: x86-64
#~ version: '7.4'
#~ host: macos-12
#~ pkg: pkg_info -Q perl && pkg_add

#~ - name: openbsd
#~ architecture: arm64
#~ version: '7.4'
#~ host: ubuntu-latest

#~ - name: netbsd
#~ architecture: x86-64
#~ version: '9.3'
#~ host: ubuntu-latest

name: "${{ matrix.os.name }}-${{ matrix.os.version }} (${{ matrix.os.architecture }})"
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Test in FreeBSD
id: test
uses: vmactions/freebsd-vm@v0.3.0
with:
usesh: true
prepare: pkg install -y lang/perl${{matrix.perl}} p5-App-cpanminus
run: |
freebsd-version
perl -V
cpanm --installdeps -v -n --mirror http://cpan.cpantesters.org/ .
cpanm -v --test-only .
- uses: actions/checkout@v4
- name: Test on ${{ matrix.os.name }}
uses: cross-platform-actions/action@v0.22.0
env:
MY_ENV1: MY_ENV1
MY_ENV2: MY_ENV2
with:
environment_variables: MY_ENV1 MY_ENV2
operating_system: ${{ matrix.os.name }}
architecture: ${{ matrix.os.architecture }}
version: ${{ matrix.os.version }}
shell: bash
memory: 5G
cpu_count: 4
run: |
uname -a
echo $SHELL
pwd
ls -lah
whoami
env | sort
sudo ${{matrix.os.pkg}} perl${{matrix.perl}}
/usr/local/bin/perl5.38.2 -v
curl -L https://cpanmin.us | sudo /usr/local/bin/perl5.38.2 - App::cpanminus
sudo cpanm -n -v Module::Build::Tiny
sudo cpanm -v .
14 changes: 7 additions & 7 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
key: ${{ matrix.os }}-perl-v${{ matrix.perl }}${{ matrix.flags }}

- name: "Init dev env on Windows"
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-latest' }}
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-2019' }}
run: |
# skip installing perl if it is already installed.
if (!(Test-Path "C:\strawberry\perl\bin")) {
Expand All @@ -53,7 +53,7 @@ jobs:
"@ |
Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: "Build perl ${{ matrix.perl }} directly on Windows"
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-latest' }}
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-2019' }}
shell: cmd
run: >
git clone --depth 1 --branch v${{matrix.perl}} https://github.com/Perl/perl5.git
Expand All @@ -73,7 +73,7 @@ jobs:
set PATH=C:\Users\runneradmin\perl5\perlbrew\bin;%PATH%

- name: "Install deps"
if: ${{ matrix.os == 'windows-latest' }}
if: ${{ matrix.os == 'windows-2019' }}
shell: cmd
run: |
set PATH=C:\Users\runneradmin\perl5\perlbrew\bin;%PATH%
Expand All @@ -83,7 +83,7 @@ jobs:
cpanm --installdeps --notest .

- name: "Testing on chached perl ${{ matrix.os }}-${{ matrix.perl }}(${{ matrix.flags }})"
if: ${{ matrix.os == 'windows-latest' }}
if: ${{ matrix.os == 'windows-2019' }}
shell: cmd
run: |
set PATH=C:\Users\runneradmin\perl5\perlbrew\bin;%PATH%
Expand All @@ -93,7 +93,7 @@ jobs:
cpanm --test-only -v .

- name: "Build perl ${{ matrix.perl }} with perlbrew"
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os != 'windows-latest' }}
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os != 'windows-2019' }}
shell: bash
run: >
\curl -L https://install.perlbrew.pl | bash
Expand All @@ -107,7 +107,7 @@ jobs:
perlbrew install --switch --verbose --as cache-${{ matrix.os }}${{ matrix.perl }}${{ matrix.flags }} -j 12 --notest --noman ${{ matrix.flags }} perl-${{ matrix.perl }}

- name: "Install deps"
if: ${{ matrix.os != 'windows-latest' }}
if: ${{ matrix.os != 'windows-2019' }}
shell: bash
run: |
source ~/perl5/perlbrew/etc/bashrc
Expand All @@ -121,7 +121,7 @@ jobs:
cpanm --installdeps --notest .

- name: "Testing on chached perl ${{ matrix.os }}-${{ matrix.perl }}(${{ matrix.flags }})"
if: ${{ matrix.os != 'windows-latest' }}
if: ${{ matrix.os != 'windows-2019' }}
shell: bash
run: |
source ~/perl5/perlbrew/etc/bashrc
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/osx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
key: ${{ matrix.os }}-perl-v${{ matrix.perl }}${{ matrix.flags }}

- name: "Init dev env on Windows"
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-latest' }}
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-2019' }}
run: |
# skip installing perl if it is already installed.
if (!(Test-Path "C:\strawberry\perl\bin")) {
Expand All @@ -55,7 +55,7 @@ jobs:
"@ |
Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: "Build perl ${{ matrix.perl }} directly on Windows"
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-latest' }}
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os == 'windows-2019' }}
shell: cmd
run: >
git clone --depth 1 --branch v${{matrix.perl}} https://github.com/Perl/perl5.git
Expand All @@ -75,7 +75,7 @@ jobs:
set PATH=C:\Users\runneradmin\perl5\perlbrew\bin;%PATH%

- name: "Install deps"
if: ${{ matrix.os == 'windows-latest' }}
if: ${{ matrix.os == 'windows-2019' }}
shell: cmd
run: |
set PATH=C:\Users\runneradmin\perl5\perlbrew\bin;%PATH%
Expand All @@ -85,7 +85,7 @@ jobs:
cpanm --installdeps --notest .

- name: "Testing on chached perl ${{ matrix.os }}-${{ matrix.perl }}(${{ matrix.flags }})"
if: ${{ matrix.os == 'windows-latest' }}
if: ${{ matrix.os == 'windows-2019' }}
shell: cmd
run: |
set PATH=C:\Users\runneradmin\perl5\perlbrew\bin;%PATH%
Expand All @@ -95,7 +95,7 @@ jobs:
cpanm --test-only -v .

- name: "Build perl ${{ matrix.perl }} with perlbrew"
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os != 'windows-latest' }}
if: ${{ steps.cache-perl.outputs.cache-hit != 'true' && matrix.os != 'windows-2019' }}
shell: bash
run: >
\curl -L https://install.perlbrew.pl | bash
Expand All @@ -109,7 +109,7 @@ jobs:
perlbrew install --switch --verbose --as cache-${{ matrix.os }}${{ matrix.perl }}${{ matrix.flags }} -j 12 --notest --noman ${{ matrix.flags }} perl-${{ matrix.perl }}

- name: "Install deps"
if: ${{ matrix.os != 'windows-latest' }}
if: ${{ matrix.os != 'windows-2019' }}
shell: bash
run: |
source ~/perl5/perlbrew/etc/bashrc
Expand All @@ -123,7 +123,7 @@ jobs:
cpanm --installdeps --notest .

- name: "Testing on chached perl ${{ matrix.os }}-${{ matrix.perl }}(${{ matrix.flags }})"
if: ${{ matrix.os != 'windows-latest' }}
if: ${{ matrix.os != 'windows-2019' }}
shell: bash
run: |
source ~/perl5/perlbrew/etc/bashrc
Expand Down
Loading
Loading