Skip to content

Commit f89f573

Browse files
committed
ci: fix aarch64 build
1 parent 3bfc0d5 commit f89f573

4 files changed

Lines changed: 97 additions & 208 deletions

File tree

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[target.aarch64-unknown-linux-gnu]
2+
linker = "aarch64-linux-gnu-gcc"

.github/workflows/ci.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
uses: Swatinem/rust-cache@v2
4646
with:
4747
key: ${{ matrix.target }}
48+
- name: Install Dependencies
49+
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
50+
run: sudo apt install -y gcc-aarch64-linux-gnu
4851
- run: cargo build --release --target ${{ matrix.target }}
4952
- name: Compress and rename
5053
if: ${{ matrix.os != 'windows-latest' }}
@@ -53,7 +56,7 @@ jobs:
5356
if: ${{ matrix.os == 'windows-latest' }}
5457
run: mv target/${{ matrix.target }}/release/mdbook-typst-math${{ matrix.suffix }} mdbook-typst-math-${{ matrix.target }}${{ matrix.suffix }}
5558
- name: Upload Artifact
56-
uses: actions/upload-artifact@v2
59+
uses: actions/upload-artifact@v4
5760
with:
5861
name: mdbook-typst-math-${{ matrix.target }}
5962
path: mdbook-typst-math-${{ matrix.target }}${{ matrix.suffix }}
@@ -78,7 +81,7 @@ jobs:
7881

7982
steps:
8083
- uses: actions/checkout@v4
81-
- uses: actions/download-artifact@v3
84+
- uses: actions/download-artifact@v4
8285
with:
8386
path: artifacts
8487
- name: List Artifacts

0 commit comments

Comments
 (0)