Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,65 @@ jobs:
with:
path: /tmp/logs
name: tests-trace-${{ matrix.cgroups }}-${{ matrix.os }}
tests-windows-build:
runs-on: 'windows-2019'
steps:
- uses: actions/checkout@v2
- uses: actions-rs/[email protected]
with:
# nightly is used for cargo --out-dir option.
toolchain: nightly
override: true
- name: Install targets
run: |
rustup target add x86_64-pc-windows-gnu
rustup target add x86_64-pc-windows-msvc
- uses: actions/cache@v2
with:
path: ./target
key: ${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
- name: Build tests
run: |
powershell ci/windows-build.ps1
timeout-minutes: 5
- uses: actions/upload-artifact@v2
with:
path: ./tests
name: tests-windows
retention-days: 2

tests-windows-run:
strategy:
matrix:
rust-target:
- 'x86_64-pc-windows-gnu'
- 'x86_64-pc-windows-msvc'
runs-on: windows-latest
needs:
- tests-windows-build
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v1
with:
path: ./tests
name: tests-windows
- name: Test
run: powershell ci/windows.ps1
timeout-minutes: 5
env:
CI_TARGET: ${{ matrix.rust-target }}
- name: Collect logs
if: always()
run: |
ls
mkdir ./ci-logs
cp ./strace* ./ci-logs
ls ./ci-logs
- uses: actions/upload-artifact@v1
if: always()
with:
path: ./ci-logs
name: tests-ntcalls

nightly-checks:
runs-on: ubuntu-20.04
Expand Down
Loading