Skip to content

Commit

Permalink
Final changes to gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cabrador authored and wsodsong committed Apr 9, 2024
1 parent 4b1dc83 commit 2e4c21e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/CI_OSX.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,17 @@ jobs:

build:
runs-on: macos-latest
env:
TEST_TMPDIR: "/Users/runner/.cache/bazel"
steps:
- name: Set up Go 1.19
- name: Set up Go 1.21
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.21

- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.13
with:
cmake-version: '3.16.x'

- name: Setup bazelisk
uses: bazelbuild/setup-bazelisk@v2

- name: Mount bazel cache
uses: actions/cache@v3
with:
path: "/Users/runner/.cache/bazel"
key: bazel-osx

- name: Test
run: go test -v ./db ./substate

11 changes: 1 addition & 10 deletions .github/workflows/CI_UBUNTU.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,16 @@ jobs:
with:
go-version: 1.21

- name: Set up bazelisk
uses: bazelbuild/setup-bazelisk@v2

- name: Set up cmake
uses: jwlawson/actions-setup-cmake@v1.13
with:
cmake-version: '3.19.x'

- name: Mount bazel cache
uses: actions/cache@v3
with:
path: "~/.cache/bazel"
key: bazel

- name: Check import formatting
run: diff -u <(echo -n) <(find . \( -path "./carmen" -o -path "./tosca" \) -prune -o -name '*.go' -exec goimports -l {} \;)

- name: Check code formatting
run: diff -u <(echo -n) <(find . \( -path "./carmen" -o -path "./tosca" \) -prune -o -name '*.go' -exec gofmt -d -s {} \;)

- name: Test
run: go test -v ./...
run: go test -v ./db ./substate

0 comments on commit 2e4c21e

Please sign in to comment.