Skip to content

Commit

Permalink
Download musl in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Oct 6, 2024
1 parent 31fcb23 commit 073ddcf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
- run: rustup target add ${{ matrix.target }}
- run: rustup target add x86_64-unknown-linux-musl
- run: cargo generate-lockfile
- name: Download MUSL source
run: ./ci/download-musl.sh
- run: ./ci/run-docker.sh ${{ matrix.target }}

rustfmt:
Expand All @@ -52,6 +54,8 @@ jobs:
- name: Install Rust
run: rustup update nightly && rustup default nightly
- run: rustup target add wasm32-unknown-unknown
- name: Download MUSL source
run: ./ci/download-musl.sh
- run: cargo build --target wasm32-unknown-unknown

cb:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/target
Cargo.lock
musl/
**.tar.gz
10 changes: 7 additions & 3 deletions ci/download-musl.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
#!/bin/bash
#!/bin/sh

set -eux

fname=musl-1.2.5.tar.gz
sha=1234
sha=a9a118bbe84d8764da0ea0d28b3ab3fae8477fc7e4085d90102b8596fc7c75e4

mkdir musl
curl "https://musl.libc.org/releases/$fname" -O
tar -xzvf "$fname" -C musl --strip-components 1
echo "$sha $fname" | shasum -a 256 --check || exit 1

tar -xzf "$fname" -C musl --strip-components 1
rm "$fname"

0 comments on commit 073ddcf

Please sign in to comment.