Skip to content

Commit

Permalink
[ci] disable build for linux arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
nixff committed May 24, 2024
1 parent d7e26f5 commit 6cedc62
Showing 1 changed file with 28 additions and 30 deletions.
58 changes: 28 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,34 +80,34 @@ jobs:
name: ztm-cli-${{needs.set-release-version.outputs.release_version}}-generic_linux-x86_64.tar.gz
path: ztm-cli-${{needs.set-release-version.outputs.release_version}}-generic_linux-x86_64.tar.gz

build-ztm-cli-linux-arm64:
needs: set-release-version
name: build-ztm-cli-linux-arm64
runs-on: [self-hosted, linux, ARM64]
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20

- name: Build
id: build
env:
RELEASE_VERSION: ${{ needs.set-release-version.outputs.release_version }}
ZTM_VERSION: ${{needs.set-release-version.outputs.release_version}}
ZTM_COMMIT_SHA: ${{needs.set-release-version.outputs.commit_sha}}
ZTM_COMMIT_DATE: ${{needs.set-release-version.outputs.commit_date}}
run: |
set -x
./build.sh
ls -al
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ztm-cli-${{needs.set-release-version.outputs.release_version}}-generic_linux-arm64.tar.gz
path: ztm-cli-${{needs.set-release-version.outputs.release_version}}-generic_linux-arm64.tar.gz
# build-ztm-cli-linux-arm64:
# needs: set-release-version
# name: build-ztm-cli-linux-arm64
# runs-on: [self-hosted, linux, ARM64]
# steps:
# - uses: actions/checkout@v4

# - uses: actions/setup-node@v4
# with:
# node-version: 20

# - name: Build
# id: build
# env:
# RELEASE_VERSION: ${{ needs.set-release-version.outputs.release_version }}
# ZTM_VERSION: ${{needs.set-release-version.outputs.release_version}}
# ZTM_COMMIT_SHA: ${{needs.set-release-version.outputs.commit_sha}}
# ZTM_COMMIT_DATE: ${{needs.set-release-version.outputs.commit_date}}
# run: |
# set -x
# ./build.sh
# ls -al

# - name: Upload artifacts
# uses: actions/upload-artifact@v4
# with:
# name: ztm-cli-${{needs.set-release-version.outputs.release_version}}-generic_linux-arm64.tar.gz
# path: ztm-cli-${{needs.set-release-version.outputs.release_version}}-generic_linux-arm64.tar.gz

build-ztm-cli-macos-x64:
needs: set-release-version
Expand Down Expand Up @@ -260,7 +260,6 @@ jobs:
needs:
- set-release-version
- build-ztm-cli-linux-x86_64
- build-ztm-cli-linux-arm64
- build-ztm-cli-macos-x64
- build-ztm-cli-macos-arm64
- build-ztm-cli-win-x64
Expand All @@ -284,7 +283,6 @@ jobs:
tag_name: ${{needs.set-release-version.outputs.release_version}}
files: |
ztm-cli-${{env.ZTM_VERSION}}-generic_linux-x86_64.tar.gz/ztm-cli-${{env.ZTM_VERSION}}-generic_linux-x86_64.tar.gz
ztm-cli-${{env.ZTM_VERSION}}-generic_linux-arm64.tar.gz/ztm-cli-${{env.ZTM_VERSION}}-generic_linux-arm64.tar.gz
ztm-cli-${{env.ZTM_VERSION}}-macos-x86_64.tar.gz/ztm-cli-${{env.ZTM_VERSION}}-macos-x86_64.tar.gz
ztm-cli-${{env.ZTM_VERSION}}-macos-arm64.tar.gz/ztm-cli-${{env.ZTM_VERSION}}-macos-arm64.tar.gz
ztm-cli-${{env.ZTM_VERSION}}-win-x64.zip/ztm-cli-${{env.ZTM_VERSION}}-win-x64.zip
Expand Down

0 comments on commit 6cedc62

Please sign in to comment.