.github/workflows/ci.yml in mini_portile2-2.8.5 vs .github/workflows/ci.yml in mini_portile2-2.8.6
- old
+ new
@@ -31,11 +31,11 @@
- name: configure git crlf on windows
if: matrix.platform == 'windows-latest'
run: |
git config --system core.autocrlf false
git config --system core.eol lf
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- uses: MSP-Greg/setup-ruby-pkgs@v1
with:
apt-get: _update_ build-essential cmake
mingw: _upgrade_ cmake
ruby-version: ${{ matrix.ruby }}
@@ -55,34 +55,63 @@
- name: configure git crlf on windows
if: matrix.platform == 'windows-latest'
run: |
git config --system core.autocrlf false
git config --system core.eol lf
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- uses: MSP-Greg/setup-ruby-pkgs@v1
with:
apt-get: _update_ build-essential cmake
mingw: _upgrade_ cmake
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- - uses: actions/cache@v3
+ - uses: actions/cache@v4
with:
path: examples/ports/archives
key: examples-${{ hashFiles('examples/Rakefile') }}
- run: bundle exec rake test:examples
fedora: # see https://github.com/flavorjones/mini_portile/issues/118
+ strategy:
+ fail-fast: false
+ matrix:
+ task: ["test:unit", "test:examples"]
runs-on: ubuntu-latest
container:
image: fedora:35
steps:
- run: |
dnf group install -y "C Development Tools and Libraries"
dnf install -y ruby ruby-devel libyaml-devel git-all patch cmake xz
- - uses: actions/checkout@v3
- - uses: actions/cache@v3
+ - uses: actions/checkout@v4
+ - uses: actions/cache@v4
with:
path: examples/ports/archives
key: examples-${{ hashFiles('examples/Rakefile') }}
- run: bundle install
- - run: bundle exec rake test:unit
- - run: bundle exec rake test:examples
+ - run: bundle exec rake ${{ matrix.task }}
+
+ freebsd:
+ strategy:
+ fail-fast: false
+ matrix:
+ task: ["test:unit", "test:examples"]
+ runs-on: ubuntu-latest
+ env:
+ MAKE: gmake
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/cache@v4
+ with:
+ path: examples/ports/archives
+ key: examples-${{ hashFiles('examples/Rakefile') }}
+ - uses: vmactions/freebsd-vm@v1
+ with:
+ envs: MAKE
+ usesh: true
+ copyback: false
+ prepare: pkg install -y ruby devel/ruby-gems pkgconf git cmake devel/gmake textproc/libyaml security/gnupg
+ run: |
+ git config --global --add safe.directory /home/runner/work/mini_portile/mini_portile
+ gem install bundler
+ bundle install
+ bundle exec rake ${{ matrix.task }}