Skip to content

Commit bb088a0

Browse files
committed
Fix untar of xz files on linux
1 parent a5b093b commit bb088a0

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/mlir.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,19 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111

12-
- name: Setup emscripten cache
13-
uses: actions/cache@v4
14-
with:
15-
path: ~/.emscripten-cache
16-
key: ${{ runner.os }}-emscripten
17-
restore-keys: |
18-
${{ runner.os }}-emscripten
12+
- name: Install emsdk
13+
run: |
14+
git clone --depth 1 http://github.com/emscripten-core/emsdk.git /opt/emsdk
15+
/opt/emsdk/emsdk install latest
16+
/opt/emsdk/emsdk activate latest
1917
2018
- name: Install dependencies
2119
run: |
2220
npm ci
2321
2422
- name: Build
2523
run: |
24+
source "/opt/emsdk/emsdk_env.sh"
2625
npm run build:mlir
2726
2827
- name: Upload artifacts

scripts/build-mlir.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function download({ pkg, version, outdir = "." }) {
4040
// unpack
4141
if (!(await zx.fs.exists(zx.path.join(outdir, pkg)))) {
4242
await zx.fs.mkdir(zx.path.join(outdir, pkg), { recursive: true });
43-
await $`tar jxf ${outdir}/${fileName} -C ${outdir}/${pkg} --strip-components=1`.quiet();
43+
await $`tar xf ${outdir}/${fileName} -C ${outdir}/${pkg} --strip-components=1`.quiet();
4444
}
4545
}
4646

0 commit comments

Comments
 (0)