Skip to content

Commit

Permalink
Refresh CI tooling (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga authored Jun 27, 2024
1 parent fc15ccf commit 775f07f
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 83 deletions.
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "daily"
groups:
gha:
patterns:
- "*"

- package-ecosystem: gomod
directory: /
schedule:
interval: daily
groups:
go:
patterns:
- "*"
27 changes: 2 additions & 25 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +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
with:
fetch-depth: 0

- 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
24 changes: 8 additions & 16 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,12 @@ on:
tags:
- v*

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

- 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
41 changes: 0 additions & 41 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
2 changes: 1 addition & 1 deletion buildtools/wasm/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.11.0
v0.10.2

0 comments on commit 775f07f

Please sign in to comment.