This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
More helpful message when libc is not found. #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build-x86_64-unknown-linux-musl: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Update packages data base | |
run: sudo apt-get update --quiet | |
- name: Install C/C++ toolchains | |
run: sudo apt-get install --quiet --no-install-recommends --yes dialog clang lld musl-dev | |
- name: Install rustc target | |
run: rustup target add x86_64-unknown-linux-musl | |
- name: Build | |
run: cargo build --verbose --target=x86_64-unknown-linux-musl | |
- name: Test | |
run: cargo test --verbose --target=x86_64-unknown-linux-musl | |
build-aarch64-unknown-linux-musl: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Update packages data base | |
run: sudo apt-get update --quiet | |
- name: Install C/C++ toolchains | |
run: sudo apt-get install --quiet --no-install-recommends --yes dialog clang lld musl-dev | |
- name: Install rustc target | |
run: rustup target add aarch64-unknown-linux-musl | |
- name: Build | |
run: cargo build --verbose --target=aarch64-unknown-linux-musl | |
build-armv7-unknown-linux-musleabihf: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Update packages data base | |
run: sudo apt-get update --quiet | |
- name: Install C/C++ toolchains | |
run: sudo apt-get install --quiet --no-install-recommends --yes dialog clang lld musl-dev | |
- name: Install rustc target | |
run: rustup target add armv7-unknown-linux-musleabihf | |
- name: Build | |
run: cargo build --verbose --target=armv7-unknown-linux-musleabihf | |
build-x86_64-pc-windows-gnu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Update packages data base | |
run: sudo apt-get update --quiet | |
- name: Upgrade existing packages | |
run: sudo apt-get upgrade --quiet --yes | |
- name: Install C/C++ toolchains | |
run: sudo apt-get install --quiet --yes --no-install-recommends dialog clang lld mingw-w64 wine-stable wine64 | |
- name: Install rustc target | |
run: rustup target add x86_64-pc-windows-gnu | |
- name: Build | |
run: cargo build --verbose --target=x86_64-pc-windows-gnu | |
- name: Test | |
run: cargo test --verbose --target=x86_64-pc-windows-gnu |