Skip to content

Commit

Permalink
trying again...
Browse files Browse the repository at this point in the history
  • Loading branch information
RealRTTV committed Feb 10, 2024
1 parent c45b948 commit 484223a
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# kind of stolen from rustfmt

name: Rust

on:
Expand All @@ -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

0 comments on commit 484223a

Please sign in to comment.