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 10, 2022
1 parent 846f6a8 commit 93446ca
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 21 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,11 @@ on:
types: [opened, reopened, synchronize]

jobs:
build:
make:
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
10 changes: 2 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.65.0
require go.einride.tech/sage v0.84.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.65.0 h1:tan4TFJ8RdtdGrKGyxv9P8dG1JXZQIwXLA+a1Jce4aQ=
go.einride.tech/sage v0.65.0/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ=
go.einride.tech/sage v0.84.0 h1:/Pw9T/wOmCCs3aA5tzid7F+9nauYG1ifp2oHSxAwWLg=
go.einride.tech/sage v0.84.0/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ=
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@

sagefile := .sage/bin/sagefile

$(sagefile): .sage/go.mod .sage/*.go
.PHONY: $(sagefile)
$(sagefile):
@cd .sage && go mod tidy && go run .

.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 93446ca

Please sign in to comment.