Skip to content

Commit

Permalink
ci: bump sage and use setup action
Browse files Browse the repository at this point in the history
Get caching for free.
  • Loading branch information
odsod committed Feb 21, 2022
1 parent fc1b271 commit 010abaf
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 33 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: ci

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Sage
uses: einride/sage/actions/setup@master

- name: Make
run: make
21 changes: 0 additions & 21 deletions .github/workflows/go.yml

This file was deleted.

12 changes: 3 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: release

on:
push:
Expand All @@ -10,14 +10,8 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0

- name: Set up Go
uses: actions/[email protected]
with:
go-version: ^1.17
- name: Setup Sage
uses: einride/sage/actions/setup@master

- name: Make
run: make
Expand Down
2 changes: 1 addition & 1 deletion .sage/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module sage

go 1.17

require go.einride.tech/sage v0.73.1
require go.einride.tech/sage v0.91.0
4 changes: 2 additions & 2 deletions .sage/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
go.einride.tech/sage v0.73.1 h1:6rqPlPpW0iTEcKAQpc4xaqUVJH6DgL0G21mSy5UDgAQ=
go.einride.tech/sage v0.73.1/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ=
go.einride.tech/sage v0.91.0 h1:+5O/7TtSmI/ho/21AwlGecFBsjgud8xejIx65d1l0RA=
go.einride.tech/sage v0.91.0/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ=
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ $(sagefile):
.PHONY: sage
sage: $(sagefile)

.PHONY: update-sage
update-sage:
@cd .sage && go get -d go.einride.tech/sage@latest && go mod tidy && go run .

.PHONY: clean-sage
clean-sage:
@git clean -fdx .sage/tools .sage/bin .sage/build
Expand Down

0 comments on commit 010abaf

Please sign in to comment.