Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
storybehind committed Aug 25, 2024
1 parent 68e0de9 commit 40e7a1d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 125 deletions.
88 changes: 0 additions & 88 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,91 +221,3 @@ jobs:
asset_path: ${{ env.OUTPUT_DIR }}/arm64/${{ env.APP_NAME }}-darwin-arm64.zip
asset_name: ${{ env.APP_NAME }}-darwin-arm64.zip
asset_content_type: application/zip

# darwin:
# runs-on: ubuntu-latest
# needs: create_release
# env:
# SRC_DIR: ${{ github.workspace }}/src
# OUTPUT_DIR: ${{ github.workspace }}/output
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# with:
# path: ${{ env.SRC_DIR }}

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
# with:
# platforms: linux/amd64,linux/arm64

# - name: Install zip
# uses: montudor/action-zip@v1

# - name: Setup
# run : |
# mkdir -p ${{ env.OUTPUT_DIR }}/amd64
# mkdir -p ${{ env.OUTPUT_DIR }}/arm64
# cp ${{ env.SRC_DIR }}/cmd/config.yaml ${{ env.OUTPUT_DIR }}/amd64/
# cp ${{ env.SRC_DIR }}/cmd/config.yaml ${{ env.OUTPUT_DIR }}/arm64/

# - name: Build Docker image
# run: |
# docker buildx create --use
# docker buildx build \
# --platform linux/amd64 \
# --build-arg VERSION=${{ env.VERSION }} \
# --tag ${{ env.APP_NAME }} \
# --load \
# --output type=docker,dest=${{ env.OUTPUT_DIR }}/${{ env.APP_NAME }}.tar \
# -f ${{ env.SRC_DIR }}/scripts/darwin/Dockerfile.build ${{ env.SRC_DIR }}

# - name: Load image & Extract binary from container
# run: |
# docker load -i ${{ env.OUTPUT_DIR }}/${{ env.APP_NAME }}.tar
# CONTAINER_ID=$(docker create ${{ env.APP_NAME }})
# docker cp ${CONTAINER_ID}:/go/bin/zboxcli-darwin-amd64 ${{ env.OUTPUT_DIR }}/amd64/${{ env.APP_NAME }}
# docker cp ${CONTAINER_ID}:/go/bin/zboxcli-darwin-arm64 ${{ env.OUTPUT_DIR }}/arm64/${{ env.APP_NAME }}
# docker rm ${CONTAINER_ID}

# - name: Create Zip File for darwin/amd64
# run: |
# cd ${{ env.OUTPUT_DIR }}/amd64
# zip -qq -r ${{ env.APP_NAME }}-darwin-amd64.zip ${{ env.APP_NAME }} config.yaml

# - name: Upload Zip for Darwin/amd64
# uses: actions/upload-artifact@v3
# with:
# name: ${{ env.APP_NAME }}-darwin-amd64
# path: ${{ env.OUTPUT_DIR }}/amd64/${{ env.APP_NAME }}-darwin-amd64.zip

# - name: Create Zip File for darwin/arm64
# run: |
# cd ${{ env.OUTPUT_DIR }}/arm64
# zip -qq -r ${{ env.APP_NAME }}-darwin-arm64.zip ${{ env.APP_NAME }} config.yaml

# - name: Upload Zip for Darwin/arm64
# uses: actions/upload-artifact@v3
# with:
# name: ${{ env.APP_NAME }}-darwin-arm64
# path: ${{ env.OUTPUT_DIR }}/arm64/${{ env.APP_NAME }}-darwin-arm64.zip

# - name: Upload Release Asset for Linux/amd64
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ needs.create_release.outputs.upload_url }}
# asset_path: ${{ env.OUTPUT_DIR }}/amd64/${{ env.APP_NAME }}-darwin-amd64.zip
# asset_name: ${{ env.APP_NAME }}-darwin-amd64.zip
# asset_content_type: application/zip

# - name: Upload Release Asset for Linux/arm64
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ needs.create_release.outputs.upload_url }}
# asset_path: ${{ env.OUTPUT_DIR }}/arm64/${{ env.APP_NAME }}-darwin-arm64.zip
# asset_name: ${{ env.APP_NAME }}-darwin-arm64.zip
# asset_content_type: application/zip
37 changes: 0 additions & 37 deletions scripts/darwin/Dockerfile.build

This file was deleted.

0 comments on commit 40e7a1d

Please sign in to comment.