From f107aec5a0e56953bb6afb187a7a36995db0b55f Mon Sep 17 00:00:00 2001 From: Sanko Robinson Date: Sat, 16 Mar 2024 22:20:21 -0400 Subject: [PATCH] Tinker with *BSD workflow This doens't need to be in main --- .github/workflows/freebsd.yaml | 78 ++++++++++++++++++++++++---------- 1 file changed, 56 insertions(+), 22 deletions(-) diff --git a/.github/workflows/freebsd.yaml b/.github/workflows/freebsd.yaml index 378c294..55ca7ef 100644 --- a/.github/workflows/freebsd.yaml +++ b/.github/workflows/freebsd.yaml @@ -1,29 +1,63 @@ -name: FreeBSD +name: BSD -on: - push: - branches: '*' - pull_request: - branches: '*' +on: [push] jobs: - perl-job: - runs-on: macos-10.15 - name: FreeBSD Perl ${{matrix.perl}} + test: + runs-on: ubuntu-latest strategy: fail-fast: false matrix: - perl: [ '5.32' ] + perl: ["5.32.0"] + os: + - name: freebsd + architecture: x86-64 + version: '14.0' + perl: "5.38.2" + pkg: sudo pkg install -y perl + + - name: openbsd + architecture: x86-64 + perl: "5.38.2" + version: '7.4' + pkg: sudo pgk_add -v perl + + - name: openbsd + architecture: arm64 + version: '7.4' + perl: "5.38.2" + pkg: sudo pgk_add -v perl + + - name: netbsd + architecture: x86-64 + version: '9.3' + perl: "5.38.2" + # https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/lang/perl5/index.html + pkg: sudo pkgin -y install perl + steps: - - uses: actions/checkout@v4 - - name: Test in FreeBSD - id: test - uses: vmactions/freebsd-vm@v1 - 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.23.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 + ${{matrix.os.pkg}}-${{matrix.os.perl}} p5-App-cpanminus + perl -V + cpanm -v --mirror http://cpan.cpantesters.org/ .