1515 PIP_PROGRESS_BAR : off
1616
1717jobs :
18- python -lint :
18+ code -lint :
1919 runs-on : ubuntu-latest
2020 steps :
2121 - uses : actions/checkout@v4
4848 path : frontend/build
4949
5050 python-test :
51- needs : [python -lint, frontend-build]
51+ needs : [code -lint, frontend-build]
5252 runs-on : ${{ matrix.os }}
5353 strategy :
5454 matrix :
@@ -118,9 +118,9 @@ jobs:
118118 strategy :
119119 matrix :
120120 include :
121- - { goos: "linux", goarch: "amd64" }
122- - { goos: "linux", goarch: "arm64" }
123- runs-on : ubuntu-latest
121+ - { runs-on: "ubuntu-24.04", goos: "linux", goarch: "amd64" }
122+ - { runs-on: "ubuntu-24.04-arm", goos: "linux", goarch: "arm64" }
123+ runs-on : ${{ matrix.runs-on }}
124124 steps :
125125 - uses : actions/checkout@v4
126126 - name : Set up Go
@@ -132,11 +132,10 @@ jobs:
132132 env :
133133 GOOS : ${{ matrix.goos }}
134134 GOARCH : ${{ matrix.goarch }}
135- CGO_ENABLED : 0
136135 run : |
137136 VERSION=${GITHUB_REF#refs/tags/}
138- go build -ldflags "-X 'main.Version=$VERSION' -extldflags '-static'" -o dstack-runner-$GOOS-$GOARCH $REPO_NAME/runner/cmd/runner
139- go build -ldflags "-X 'main.Version=$VERSION' -extldflags '-static'" -o dstack-shim-$GOOS-$GOARCH $REPO_NAME/runner/cmd/shim
137+ CGO_ENABLED=0 go build -ldflags "-X 'main.Version=$VERSION' -extldflags '-static'" -o dstack-runner-$GOOS-$GOARCH $REPO_NAME/runner/cmd/runner
138+ CGO_ENABLED=1 go build -ldflags "-X 'main.Version=$VERSION' -extldflags '-static'" -o dstack-shim-$GOOS-$GOARCH $REPO_NAME/runner/cmd/shim
140139 - uses : actions/upload-artifact@v4
141140 with :
142141 name : dstack-runner-${{ matrix.goos }}-${{ matrix.goarch }}
0 commit comments