Skip to content

DNM: add a CI job to iterate on the Windows build #1

DNM: add a CI job to iterate on the Windows build

DNM: add a CI job to iterate on the Windows build #1

name: Build on Linux, Run on Windows
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize, reopened]
jobs:
build-linux:
name: Julia - ${{ github.event_name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Install Julia 1.7 for BinaryBuilder. Note that this is an old version of
# Julia, but it is required for compatibility with BinaryBuilder.
- uses: julia-actions/setup-julia@v2
with:
version: "1.7"
arch: x64
- uses: julia-actions/cache@v2
- run: |
julia --color=yes -e 'using Pkg; Pkg.add("BinaryBuilder")'
julia --color=yes .github/julia/build_tarballs.jl x86_64-w64-mingw32-cxx11 --verbose --deploy="local"
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: scip-jll
path: /home/runner/.julia/dev/SCIP_jll
run-windows:
runs-on: windows-latest
needs: build-linux
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: "1"
arch: x64
- uses: julia-actions/julia-buildpkg@v1
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: scip-jll
- shell: julia --color=yes {0}
run: |
using Pkg
Pkg.develop(; path="/home/runner/.julia/dev/SCIP_jll")
Pkg.test("SCIP")