Skip to content

Commit

Permalink
ci: Update to use cmake, fix artifacts upload
Browse files Browse the repository at this point in the history
  • Loading branch information
tmmsartor committed Jul 14, 2024
1 parent 028d887 commit 2ede89e
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,29 @@ jobs:
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v2
- run: |
julia --startup-file=no --project=. -e 'using Pkg; Pkg.instantiate()'
julia --startup-file=no --project=compiler -e 'using Pkg; Pkg.instantiate()'
julia --startup-file=no --project=compiler compiler/build.jl foo
mkdir build
pushd build
cmake ..
make
popd
#julia --startup-file=no --project=. -e 'using Pkg; Pkg.instantiate()'
#julia --startup-file=no --project=compiler -e 'using Pkg; Pkg.instantiate()'
#julia --startup-file=no --project=compiler compiler/build.jl foo
# Upload as release asset
- uses: vimtor/[email protected]
with:
files: foo/
files: build/madnlp_c-0.8.3-0.1.0/
recursive: true
dest: foo.zip

dest: madnlp_c-0.8.3-1.zip
- name: Upload files to a GitHub release
uses: svenstaro/[email protected]
with:
overwrite: true
tag: v0.1
file: foo.zip
file: madnlp_c-0.8.3-1.zip
asset_name: madnlp-jl${{ matrix.version}}-${{ matrix.os }}-${{ matrix.arch }}.zip
prerelease: true

- uses: actions/[email protected]
with:
name: madnlp-jl${{ matrix.version}}-${{ matrix.os }}-${{ matrix.arch }}
path: foo
path: build/madnlp_c-0.8.3-0.1.0/

0 comments on commit 2ede89e

Please sign in to comment.