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 b115ff3
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/dst.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: DST

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

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

- name: Set up Go
run: |
curl -L -o go-custom-linux-amd64.tar.gz https://github.com/polarsignals/go/releases/download/v0.0.1/go-custom-linux-amd64.tar.gz
tar -xzf go-custom-linux-amd64.tar.gz
sudo mv go /usr/local/go
echo "/usr/local/go/bin" >> $GITHUB_PATH
echo "GOROOT=/usr/local/go" >> $GITHUB_ENV
- name: Setup `wasmtime`
uses: bytecodealliance/actions/wasmtime/setup@v1

- name: Setup Go module cache
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
- name: Run DST Test
run: |
iterations=10
for ((i=0; i < iterations; i++))
do
export GORANDSEED=$RANDOM$RANDOM$RANDOM$RANDOM$RANDOM$RANDOM
# ldflags=-checklinkname=0 is required for parquet-go to build with
# Go 1.23.
echo "Running DST test iteration $((i+1))/${iterations} with GORANDSEED=${GORANDSEED}"
GOOS=wasip1 GOARCH=wasm go test -ldflags=-checklinkname=0 -tags=faketime --exec="$GOROOT/misc/wasm/go_wasip1_wasm_exec -S inherit-env=y" ./dst
done

0 comments on commit b115ff3

Please sign in to comment.