From 62fe56959196322dc022b33ed1cbc8a067b97f9d Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Sat, 9 Sep 2023 17:57:37 -0400 Subject: [PATCH] `CI`: add x86_64-unknown-linux-musl test [skip ci] --- .github/workflows/rust-musl.yml | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/rust-musl.yml diff --git a/.github/workflows/rust-musl.yml b/.github/workflows/rust-musl.yml new file mode 100644 index 000000000..5ae2f801d --- /dev/null +++ b/.github/workflows/rust-musl.yml @@ -0,0 +1,51 @@ +name: Linux - musl + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: + +concurrency: + group: ci-linux-musl-tests-${{ github.ref }}-1 + cancel-in-progress: true + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' + remove-docker-images: 'true' + - name: apt-get update Ubuntu + run: | + sudo apt-get update + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4.7.0 + with: + python-version: '3.11' + - name: Install and Run Redis + run: | + sudo apt-get install redis-server + sudo service redis-server start + - name: Update Rust + run: rustup update + - name: Setup Rust-cache + uses: Swatinem/rust-cache@v2 + with: + key: qsv-x86_64-unknown-linux-musl-cache + - name: Run tests + env: + RUSTFLAGS: -C target-feature=+fxsr,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+fma + run: cargo test --target x86_64-unknown-linux-musl --verbose --locked --features=apply,fetch,foreach,generate,geocode,luau,python,feature_capable