Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillis committed May 21, 2024
1 parent c78abff commit 3fd10b4
Show file tree
Hide file tree
Showing 11 changed files with 724 additions and 5 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build

on: [push, pull_request]

jobs:
build:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
actions: write
contents: read
strategy:
fail-fast: false
matrix:
version:
- '1.10'
os:
- windows-2022
- ubuntu-20.04
- macos-11
arch:
- x64
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v2
- run: julia --startup-file=no --project=compiler compiler/build.jl foo
- uses: actions/[email protected]
with:
name: foo-${{ matrix.version}}-${{ matrix.os }}-${{ matrix.arch }}
path: foo
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ project(MadNLP_C VERSION 1.0.0) # Adjust the version as necessary
set(Julia_EXECUTABLE julia)

add_custom_command(
OUTPUT ${OUT_DIR}/build_step_stamp
COMMAND ${Julia_EXECUTABLE} --startup-file=no --project=${CMAKE_CURRENT_SOURCE_DIR} -e "using Pkg; Pkg.instantiate()"
COMMAND ${Julia_EXECUTABLE} --startup-file=no --project=build -e "using Pkg; Pkg.instantiate()"
OUTPUT FOO
COMMAND ${Julia_EXECUTABLE} --startup-file=no --project=compiler -e "using Pkg; Pkg.instantiate()"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Instantiating Julia packages"
)


Loading

0 comments on commit 3fd10b4

Please sign in to comment.