Skip to content

Commit

Permalink
Add CI for julia-nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Apr 26, 2024
1 parent d6fc14e commit 0b70b7f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,19 @@ jobs:
- version: '1'
os: macos-14
arch: aarch64
- version: 'nightly'
os: ubuntu-latest
arch: x64
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v3
with:
file: lcov.info
22 changes: 10 additions & 12 deletions src/C_API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -754,22 +754,20 @@ function solve_mcp(
jacobian_linear_elements::Vector{Int} = Int[],
kwargs...,
)
if c_api_Path_CheckLicense(length(z), nnz) == 0
@assert length(z) == length(lb) == length(ub)
n = length(z)
if c_api_Path_CheckLicense(n, nnz) == 0
return MCP_LicenseError, nothing, nothing
elseif nnz > typemax(Cint)
return MCP_Error, nothing, nothing
elseif n == 0
return MCP_Solved, nothing, nothing
end
@assert length(z) == length(lb) == length(ub)
out_io = silent ? IOBuffer() : stdout
output_data = OutputData(out_io)
GC.@preserve output_data begin
c_api_Output_SetInterface(OutputInterface(output_data))

n = length(z)
if n == 0
return MCP_Solved, nothing, nothing
end
if nnz > typemax(Cint)
return MCP_Error, nothing, nothing
end
output_interface = OutputInterface(output_data)
GC.@preserve output_data output_interface begin
c_api_Output_SetInterface(output_interface)
o = c_api_Options_Create()
c_api_Path_AddOptions(o)
c_api_Options_Default(o)
Expand Down

0 comments on commit 0b70b7f

Please sign in to comment.