Skip to content

Support Windows #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
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