@@ -58,19 +58,86 @@ jobs:
5858 exit 1
5959 fi
6060
61- build-and-test :
62- needs : [get-configs, version-and-tag]
63- uses : ./.github/workflows/build-and-test.yml
64- strategy :
65- fail-fast : true
66- matrix :
67- os : [ubuntu-latest, windows-latest, macos-latest]
68- with :
69- ref : ${{ needs.version-and-tag.outputs.tag }}
70- runs-on : ${{ matrix.os }}
61+ # build-and-test:
62+ # needs: [get-configs, version-and-tag]
63+ # uses: ./.github/workflows/build-and-test.yml
64+ # strategy:
65+ # fail-fast: true
66+ # matrix:
67+ # os: [ubuntu-latest, windows-latest, macos-latest]
68+ # with:
69+ # ref: ${{ needs.version-and-tag.outputs.tag }}
70+ # runs-on: ${{ matrix.os }}
71+
72+ # build-linux:
73+ # name: Build Linux (${{ matrix.arch }})
74+ # runs-on: ubuntu-latest
75+ #
76+ # strategy:
77+ # matrix:
78+ # include:
79+ # - arch: 'x64'
80+ # container: 'quay.io/pypa/manylinux2014_x86_64'
81+ # use_qemu: false
82+ # pkg_name: 'my-app-linux-x64'
83+ # - arch: 'arm64'
84+ # container: 'quay.io/pypa/manylinux2014_aarch64'
85+ # use_qemu: true
86+ # pkg_name: 'my-app-linux-arm64'
87+ #
88+ # steps:
89+ # - name: Checkout code
90+ # uses: actions/checkout@v4
91+ #
92+ # - name: Set up QEMU for ARM emulation
93+ # if: matrix.use_qemu
94+ # uses: docker/setup-qemu-action@v3
95+ #
96+ # - name: Build inside manylinux container
97+ # run: |
98+ # docker run --rm -v ${{ github.workspace }}:/work -w /work \
99+ # ${{ matrix.container }} \
100+ # /bin/bash -c "
101+ # # 1. Install build tools and Node.js
102+ # yum install -y curl make gcc-c++ python3 tar gzip
103+ # curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
104+ # export NVM_DIR=\"\$HOME/.nvm\"
105+ # [ -s \"\$NVM_DIR/nvm.sh\" ] && \. \"\$NVM_DIR/nvm.sh\"
106+ # nvm install 18
107+ # npm install -g npm@latest
108+ #
109+ # # 2. Build native deps and Webpack bundle
110+ # npm ci
111+ # npm run build
112+ #
113+ # # 3. Create the distributable package
114+ # mkdir -p dist-pkg/${{ matrix.pkg_name }}
115+ # cp -R node_modules dist-pkg/${{ matrix.pkg_name }}/
116+ # cp -R dist dist-pkg/${{ matrix.pkg_name }}/
117+ # cp package.json package-lock.json dist-pkg/${{ matrix.pkg_name }}/
118+ #
119+ # # 4. Create a run script
120+ # echo -e '#!/bin/bash\nSCRIPT_DIR=\$(cd \$(dirname \$0) && pwd)\nnode \$SCRIPT_DIR/dist/bundle.js \"\$@\"' > dist-pkg/${{ matrix.pkg_name }}/run.sh
121+ # chmod +x dist-pkg/${{ matrix.pkg_name }}/run.sh
122+ #
123+ # # 5. Create a tarball
124+ # cd dist-pkg
125+ # tar -czvf ${{ matrix.pkg_name }}.tar.gz ${{ matrix.pkg_name }}
126+ # "
127+ #
128+ # - name: Fix Artifact Permissions
129+ # # Docker creates files as root, fix ownership for upload
130+ # run: sudo chown -R $(id -u):$(id -g) dist-pkg
131+ #
132+ # - name: Upload Linux Artifact
133+ # uses: actions/upload-artifact@v4
134+ # with:
135+ # name: ${{ matrix.pkg_name }}
136+ # path: dist-pkg/${{ matrix.pkg_name }}.tar.gz
137+ # if-no-files-found: error
71138
72139 bundle-and-release :
73- needs : [get-configs, version-and-tag, build-and-test ]
140+ needs : [get-configs, version-and-tag]
74141 permissions :
75142 contents : write
76143 strategy :
@@ -80,12 +147,10 @@ jobs:
80147 - { os: "ubuntu-latest", arch: "x64", platform: "linux", go-arch: "amd64" }
81148 - { os: "ubuntu-latest", arch: "arm64", platform: "linux", go-arch: "arm64" }
82149 - { os: "ubuntu-latest", arch: "arm", platform: "linux", go-arch: "arm" }
83- - { os: "ubuntu-22.04", arch: "x64", platform: "linux", go-arch: "amd64" }
84- - { os: "ubuntu-22.04", arch: "arm64", platform: "linux", go-arch: "arm64" }
85- - { os: "ubuntu-22.04", arch: "arm", platform: "linux", go-arch: "arm" }
86150 - { os: "macos-latest", arch: "x64", platform: "darwin", go-arch: "amd64" }
87151 - { os: "macos-latest", arch: "arm64", platform: "darwin", go-arch: "arm64" }
88152 - { os: "windows-latest", arch: "x64", platform: "win32", go-arch: "amd64" }
153+ # - { os: "windows-11-arm", arch: "arm64", platform: "win32", go-arch: "arm64" }
89154 runs-on : ${{ matrix.os }}
90155 steps :
91156 - uses : actions/checkout@v5
@@ -145,10 +210,6 @@ jobs:
145210 PLATFORM=${{ matrix.platform }}
146211 ARCH=${{ matrix.arch }}
147212
148- if [[ "${{ matrix.os }}" == "ubuntu-22.04" ]]; then
149- PLATFORM="linux22"
150- fi
151-
152213 TAG=${{ needs.version-and-tag.outputs.tag }}
153214 if [[ "$TAG" =~ -alpha$ ]]; then
154215 FILE_NAME="${APP_NAME}-${VERSION}-alpha-${PLATFORM}-${ARCH}.zip"
0 commit comments