Skip to content

Commit cd07427

Browse files
authored
[Internal]: Fix release workflow (#2959)
Port changes from #2936 and #2952
1 parent 7cb3124 commit cd07427

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
PIP_PROGRESS_BAR: off
1616

1717
jobs:
18-
python-lint:
18+
code-lint:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v4
@@ -48,7 +48,7 @@ jobs:
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

Comments
 (0)