diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 55a6c92439..8f4af22a2e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ env: PIP_PROGRESS_BAR: off jobs: - python-lint: + code-lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -48,7 +48,7 @@ jobs: path: frontend/build python-test: - needs: [python-lint, frontend-build] + needs: [code-lint, frontend-build] runs-on: ${{ matrix.os }} strategy: matrix: @@ -118,9 +118,9 @@ jobs: strategy: matrix: include: - - { goos: "linux", goarch: "amd64" } - - { goos: "linux", goarch: "arm64" } - runs-on: ubuntu-latest + - { runs-on: "ubuntu-24.04", goos: "linux", goarch: "amd64" } + - { runs-on: "ubuntu-24.04-arm", goos: "linux", goarch: "arm64" } + runs-on: ${{ matrix.runs-on }} steps: - uses: actions/checkout@v4 - name: Set up Go @@ -132,11 +132,10 @@ jobs: env: GOOS: ${{ matrix.goos }} GOARCH: ${{ matrix.goarch }} - CGO_ENABLED: 0 run: | VERSION=${GITHUB_REF#refs/tags/} - go build -ldflags "-X 'main.Version=$VERSION' -extldflags '-static'" -o dstack-runner-$GOOS-$GOARCH $REPO_NAME/runner/cmd/runner - go build -ldflags "-X 'main.Version=$VERSION' -extldflags '-static'" -o dstack-shim-$GOOS-$GOARCH $REPO_NAME/runner/cmd/shim + CGO_ENABLED=0 go build -ldflags "-X 'main.Version=$VERSION' -extldflags '-static'" -o dstack-runner-$GOOS-$GOARCH $REPO_NAME/runner/cmd/runner + CGO_ENABLED=1 go build -ldflags "-X 'main.Version=$VERSION' -extldflags '-static'" -o dstack-shim-$GOOS-$GOARCH $REPO_NAME/runner/cmd/shim - uses: actions/upload-artifact@v4 with: name: dstack-runner-${{ matrix.goos }}-${{ matrix.goarch }}