Skip to content

Commit

Permalink
Use wasilibs workflows and add dependabot (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga authored Jun 21, 2024
1 parent 980ca7f commit cbde67d
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 82 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@5a7938d4c66f2abd4b99eed54a6fc322a029bf4d
secrets: inherit
18 changes: 3 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,6 @@ on:
- 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

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

This file was deleted.

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

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

jobs:
build:
uses: wasilibs/actions/.github/workflows/update.yaml@b661aa384cbc5de5d04b4d99b9dc5bbeaeb247d3
secrets: inherit
2 changes: 1 addition & 1 deletion buildtools/wasm/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.64.2
v1.64.1

0 comments on commit cbde67d

Please sign in to comment.