The ubuntu-latest image no longer ships apt-key or clang-14. Install the default clang instead; secp256k1-sys's bundled wasm sysroot makes the CFLAGS and libc6-dev-i386 workarounds unnecessary.
name: Check WASM
runs-on: ubuntu-latest
env:
- CC: clang-14
- CFLAGS: -I/usr/include
+ CC: clang
steps:
- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- # Install a recent version of clang that supports wasm32
- - run: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - || exit 1
+ # Install the distro clang, which supports wasm32.
- run: sudo apt-get update || exit 1
- - run: sudo apt-get install -y libclang-common-14-dev clang-14 libc6-dev-i386 || exit 1
+ - run: sudo apt-get install -y clang || exit 1
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@a188e68d0fd2bd36ad51dccb2b07ba6e75105f30 # v2.0.1
with: