Skip to content

Commit 882c588

Browse files
committed
test
1 parent 3e82359 commit 882c588

File tree

2 files changed

+91
-20
lines changed

2 files changed

+91
-20
lines changed

.github/workflows/release.yml

Lines changed: 79 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -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"

webpack.config.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,14 @@ const baseConfig = {
247247
'pyodide-worker': './src/services/cfnLint/pyodide-worker.ts',
248248
},
249249
resolve: {
250-
extensions: ['.ts', '.js', '.node'],
250+
extensions: ['.ts', '.js', '.node', '.json', '.wasm'],
251251
alias: {
252252
'@': resolve(__dirname, 'src'),
253253
},
254254
},
255+
experiments: {
256+
asyncWebAssembly: true,
257+
},
255258
module: {
256259
rules: [
257260
{
@@ -272,10 +275,17 @@ const baseConfig = {
272275
use: {
273276
loader: 'node-loader',
274277
options: {
275-
name: '[name].[ext]',
278+
name: 'node/[name].[ext]',
276279
},
277280
},
278281
},
282+
{
283+
test: /\.wasm$/,
284+
type: 'asset/resource',
285+
generator: {
286+
filename: 'wasm/[name].[ext]',
287+
},
288+
},
279289
],
280290
},
281291
stats: 'normal',

0 commit comments

Comments
 (0)