Skip to content

Commit

Permalink
Use standardized workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga committed Nov 20, 2024
1 parent 3436426 commit dd16cda
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 76 deletions.
25 changes: 2 additions & 23 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,5 @@ on:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-13
- macos-14
- ubuntu-22.04
- windows-2022
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version-file: go.work
cache-dependency-path: "**/go.sum"

- name: run checks
run: go run ./build check

- name: build snapshot
if: startsWith(matrix.os, 'ubuntu-')
run: go run ./build snapshot
uses: wasilibs/actions/.github/workflows/ci.yaml@eeee5d072ee283c12eb68e2c4969012fae3d6dd0
secrets: inherit
22 changes: 8 additions & 14 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@ on:
tags:
- v*

jobs:
build:
name: Release
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version-file: go.work
cache-dependency-path: "**/go.sum"
permissions:
id-token: write
attestations: write
contents: write

- run: go run ./build release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
release:
uses: wasilibs/actions/.github/workflows/release.yaml@eeee5d072ee283c12eb68e2c4969012fae3d6dd0
secrets: inherit
39 changes: 0 additions & 39 deletions .github/workflows/update-upstream.yaml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Update Upstream"

on:
schedule:
- cron: "5 4 * * *"
workflow_dispatch:

permissions:
id-token: write
attestations: write

jobs:
build:
uses: wasilibs/actions/.github/workflows/update.yaml@eeee5d072ee283c12eb68e2c4969012fae3d6dd0
secrets: inherit

0 comments on commit dd16cda

Please sign in to comment.