Skip to content
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

Try enabling windows ci workflow #116

Merged
merged 5 commits into from
Oct 27, 2023
Merged
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
41 changes: 21 additions & 20 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
needs:
- linux-conda-test
- test-with-coverage
- windows-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -77,32 +78,32 @@ jobs:
override: true
- name: publish crate
uses: katyo/publish-crates@v2
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
with:
dry-run: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

# TODO: fix windows workflow
# Windows-test:
# env:
# SCIPOPTDIR: C:\scipoptdir
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v2
windows-test:
env:
SCIPOPTDIR: C:\scipoptdir
runs-on: windows-latest
steps:
- uses: actions/checkout@v2

# - name: Download dependencies (SCIPOptSuite)
# shell: powershell
# run: wget https://scipopt.org/download/release/SCIPOptSuite-${{ env.version }}-win64-VS15.exe -outfile scipopt-installer.exe
- name: Download dependencies (SCIPOptSuite)
shell: powershell
run: wget https://scipopt.org/download/release/SCIPOptSuite-${{ env.version }}-win64-VS15.exe -outfile scipopt-installer.exe

# - name: Install dependencies (SCIPOptSuite)
# shell: cmd
# run: scipopt-installer.exe /S /D=${{ env.SCIPOPTDIR }}
- name: Install dependencies (SCIPOptSuite)
shell: cmd
run: scipopt-installer.exe /S /D=${{ env.SCIPOPTDIR }}

# - name: Build and test
# shell: powershell
# run: |
# $Env:SCIPOPTDIR = "${{ env.SCIPOPTDIR }}"
# cargo build
# cargo test
- name: Build and test
shell: powershell
run: |
$Env:SCIPOPTDIR = "${{ env.SCIPOPTDIR }}"
$Env:PATH += ";$Env:SCIPOPTDIR/bin"
cargo build
cargo test

# TODO: move to scip-sys repo
# MacOS-test:
Expand Down
Loading