Skip to content

Commit

Permalink
Revert "chore: delete github action"
Browse files Browse the repository at this point in the history
This reverts commit e4aa3d2.
  • Loading branch information
hugojosefson committed Apr 1, 2024
1 parent 7677560 commit 878be00
Showing 1 changed file with 121 additions and 0 deletions.
121 changes: 121 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
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 }}

0 comments on commit 878be00

Please sign in to comment.