Skip to content

make work in truenas scale #49

make work in truenas scale

make work in truenas scale #49

Workflow file for this run

name: ci
on:
push:
branches: "main"
pull_request:
branches: "*"
jobs:
meta:
runs-on: ubuntu-22.04
outputs:
deno-version: ${{ steps.meta.outputs.deno-version }}
steps:
- uses: actions/checkout@v4
- id: meta
run: |
echo "deno-version=$(cat .deno-version)" >> "${GITHUB_OUTPUT}"
make:
runs-on: "${{ matrix.os }}-latest"
needs: meta
name: "${{ matrix.os }}: make ${{ matrix.target }} w/ deno ${{ matrix.deno-version }}"
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-20.04"
- "ubuntu-22.04"
- "macos-14"
- "macos-14-arm64"
target:
- "clean all"
- "test"
- "docker-test"
- "docker-output-test"
deno-version:
- "1.0.0"
- "${{ needs.meta.outputs.deno-version }}"
- "^1"
exclude:
- target: "docker-output-test"
deno-version: "1.0.0"
- os: "macos-14"
target: "clean all"
- os: "macos-14"
target: "docker-test"
- os: "macos-14"
target: "docker-output-test"
- os: "macos-14-arm64"
target: "clean all"
- os: "macos-14-arm64"
target: "docker-test"
- os: "macos-14-arm64"
target: "docker-output-test"
steps:
- uses: actions/checkout@v4
- name: setup deno ${{ matrix.deno-version }}
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}
- name: make ${{ matrix.target }}
run: make ${{ matrix.target }}
make-from-scratch:
runs-on: "${{ matrix.os }}"
name: "${{ matrix.os }}: make ${{ matrix.target }} w/o deno"
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-20.04"
- "ubuntu-22.04"
- "macos-14"
- "macos-14-arm64"
target:
- "clean all"
- "test"
- "docker-test"
exclude:
- os: "macos-14"
target: "clean all"
- os: "macos-14"
target: "docker-test"
- os: "macos-14-arm64"
target: "clean all"
- os: "macos-14-arm64"
target: "docker-test"
steps:
- uses: actions/checkout@v4
- name: delete any deno binaries on PATH
run: |
set -e
delete_next_deno() {
deno_path="$(command -v deno)"
if [ -z "$deno_path" ]; then
return 1
fi
if ! [ -x "$deno_path" ]; then
return 1
fi
echo "deleting $deno_path"
rm -f "$deno_path"
}
while delete_next_deno; do
:
done
! deno --version
- name: make ${{ matrix.target }}
run: make ${{ matrix.target }}