2020-12-06 16:54:25 +08:00
|
|
|
name: Build
|
2022-03-09 06:26:45 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
2020-12-06 16:54:25 +08:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-18.04
|
2022-09-29 05:07:44 +08:00
|
|
|
- ubuntu-20.04
|
2020-12-06 16:54:25 +08:00
|
|
|
- ubuntu-latest
|
|
|
|
fish:
|
|
|
|
- stock
|
|
|
|
- 2
|
|
|
|
- 3
|
|
|
|
- brew
|
|
|
|
exclude:
|
|
|
|
- os: ubuntu-20.04
|
|
|
|
fish: 2
|
|
|
|
- os: ubuntu-latest
|
|
|
|
fish: 2
|
|
|
|
include:
|
|
|
|
- os: macos-latest
|
|
|
|
fish: brew
|
2021-10-31 21:36:01 +08:00
|
|
|
- os: macos-11
|
|
|
|
fish: brew
|
2022-09-29 05:31:51 +08:00
|
|
|
- os: macos-12
|
|
|
|
fish: brew
|
2020-12-06 16:54:25 +08:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- name: Checkout the repository
|
2022-09-29 05:08:17 +08:00
|
|
|
uses: actions/checkout@v3
|
2020-12-06 16:54:25 +08:00
|
|
|
|
2022-09-29 05:04:55 +08:00
|
|
|
- name: Add brew to path for Ubuntu
|
|
|
|
if: startsWith(matrix.os, 'ubuntu') && matrix.fish == 'brew'
|
|
|
|
run: |
|
|
|
|
echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH
|
|
|
|
echo "/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
|
|
|
|
|
2020-12-06 16:54:25 +08:00
|
|
|
- name: Install Fish
|
|
|
|
run: FISH_RELEASE=${{ matrix.fish }} tools/ci-install-fish.sh
|
|
|
|
|
|
|
|
- name: Install Oh My Fish!
|
|
|
|
run: fish bin/install --verbose --offline --noninteractive --yes
|
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: |
|
|
|
|
tests/run.fish
|
|
|
|
pushd pkg/fish-spec; fish -c 'fish-spec'; popd
|
|
|
|
pushd pkg/omf; fish -c 'fish-spec'; popd
|