Skip to content

Commit

Permalink
Merge pull request #116 from scipopt/windows-ci
Browse files Browse the repository at this point in the history
Try enabling windows ci workflow
  • Loading branch information
mmghannam authored Oct 27, 2023
2 parents 3e2c6a9 + 0370c4a commit b136944
Showing 1 changed file with 21 additions and 20 deletions.
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

0 comments on commit b136944

Please sign in to comment.