Skip to content

Commit

Permalink
workflows: add DST workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
asubiotto committed May 30, 2024
1 parent d04bda2 commit 974e44a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/dst.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: DST

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
run: |
which go
go env
curl -L -o go-custom-linux-amd64.tar.gz https://github.com/asubiotto/go/releases/download/v0.0.1-test/go-custom-linux-amd64.tar.gz
tar -xzf go-custom-linux-amd64.tar.gz
sudo mv go /usr/local/go
# Prepend, rather than append the custom binary (otherwise the default
# go binary will be used).
echo "/usr/local/go/bin" >> $GITHUB_PATH
echo "GOROOT=/usr/local/go" >> $GITHUB_ENV
sudo chmod -R 755 /usr/local/go
go version
go env
which go
- name: Run tests
run: |
which go
go version
go env
go clean -cache -modcache -i -r
go test ./...

0 comments on commit 974e44a

Please sign in to comment.