Skip to content

improve

improve #10

Workflow file for this run

name: test
on:
- push
jobs:
test-ubuntu:
strategy:
fail-fast: false
matrix:
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
os:
- ubuntu-24.04
- ubuntu-22.04
- ubuntu-20.04
runs-on: ${{ matrix.os }}
steps:
- run: cat /etc/os-release
- run: lsb_release --help
- run: lsb_release -a
- run: lsb_release -r
- run: lsb_release -r | awk '/Release:/ { print $2 }'
test-macos:
strategy:
fail-fast: false
matrix:
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
os:
# macos-15-large
- macos-15 # = macos-15-xlarge
# macos-14-large
- macos-14 # = macos-14-xlarge
- macos-13 # = macos-13-large
# macos-13-xlarge
- macos-12
# macos-12-large
runs-on: ${{ matrix.os }}
steps:
- run: sw_vers
- run: sw_vers --help
continue-on-error: true # fail macos-12
- run: sw_vers | awk '/ProductVersion/ { print $2 }'
- run: sw_vers --productVersion || sw_vers --productVersion
test-windows:
strategy:
fail-fast: false
matrix:
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
os:
- windows-2022
- windows-2019
runs-on: ${{ matrix.os }}
steps:
- run: systeminfo /?
- run: systeminfo
- run: systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
# /^OS/ is exclude "BIOS"
- run: systeminfo | awk '/^OS Version:/ { print $3 }'
test-windows-with-bash:
strategy:
fail-fast: false
matrix:
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
os:
- windows-2022
- windows-2019
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- run: systeminfo /?
- run: systeminfo
# /^OS/ is exclude "BIOS"
- run: systeminfo | awk '/^OS Version:/ { print $3 }'