From 484223a989c68891d3de7594ff4692f22b3a6050 Mon Sep 17 00:00:00 2001 From: RTTV Date: Sat, 10 Feb 2024 10:52:49 -0500 Subject: [PATCH] trying again... --- .github/workflows/rust.yml | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 469ff10..7fb480f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,3 +1,5 @@ +# kind of stolen from rustfmt + name: Rust on: @@ -10,13 +12,25 @@ env: CARGO_TERM_COLOR: always jobs: - build: - - runs-on: ubuntu-latest + test: + runs-on: windows-latest steps: - - uses: actions/checkout@v3 - - name: Build - run: cargo +nightly build --release --target x86_64-pc-windows-msvc -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort - - name: Run tests - run: cargo +nightly test --verbose + - name: disable git eol translation + run: git config --global core.autocrlf false + - name: checkout + uses: actions/checkout@v3 + + - name: Install Rustup using win.rustup.rs + run: | + # Disable the download progress bar which can cause perf issues + $ProgressPreference = "SilentlyContinue" + Invoke-WebRequest https://win.rustup.rs/ -OutFile rustup-init.exe + .\rustup-init.exe -y --default-host=x86_64-pc-windows-msvc --default-toolchain=none + del rustup-init.exe + rustup target add x86_64-pc-windows-gnu + shell: powershell + + - name: Build and Test + shell: cmd + run: cargo +nightly build --release --target x86_64-pc-windows-gnu -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort