skip Path::Tiny tests on windows #12
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
name: Test Installation | |
on: | |
push: | |
branches: [ "pu" ] | |
pull_request: | |
branches: [ "pu" ] | |
workflow_dispatch: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
perl-version: ['5.38', '5.40'] | |
runs-on: ${{ matrix.os }} | |
name: Perl ${{ matrix.perl-version }} on ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shogo82148/actions-setup-perl@v1 | |
with: | |
perl-version: ${{ matrix.perl-version }} | |
- name: Install System Dependencies (Linux) | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y build-essential libssl-dev zlib1g-dev | |
sudo apt-get install -y libasound2-dev \ | |
libx11-dev \ | |
libxrandr-dev \ | |
libxi-dev \ | |
libgl1-mesa-dev \ | |
libglu1-mesa-dev \ | |
libxcursor-dev \ | |
libxinerama-dev \ | |
libwayland-dev \ | |
libxkbcommon-dev | |
# as of right now 6.2 doesn't pass tests so we install it by hand | |
- name: Install Module::Pluggable | |
uses: perl-actions/[email protected] | |
with: | |
install: Module::Pluggable | |
tests: false | |
- name: Install Path::Tiny (it fails on windows) | |
uses: perl-actions/[email protected] | |
if: runner.os == 'Windows' | |
with: | |
tests: false | |
install: Path::Tiny | |
- name: Build and Test | |
uses: perl-actions/[email protected] | |
with: | |
install: . | |
local-lib: "./local" | |
tests: true | |
verbose: true | |