Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillis authored Jul 14, 2024
1 parent 5400df2 commit 9667a08
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: build

on: [push, pull_request]
permissions: write-all

on: push

jobs:
build:
Expand All @@ -18,7 +20,8 @@ jobs:
os:
- windows-2022
- ubuntu-20.04
#- macos-11
- macos-11
- macos-14
arch:
- x64
steps:
Expand All @@ -36,20 +39,20 @@ jobs:
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/action-zip@v1.1
- uses: vimtor/action-zip@v1.2
with:
files: foo/
recursive: true
dest: foo.zip
#- name: Upload files to a GitHub release
#uses: svenstaro/[email protected]
#with:
#overwrite: true
#tag: v0.1
#file: foo.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.zip
- name: Upload files to a GitHub release
uses: svenstaro/[email protected]
with:
overwrite: true
tag: nightly-${{ env.GITHUB_REF_SLUG }}
file: foo.zip
asset_name: madnlp-jl${{ matrix.version}}-${{ matrix.os }}-${{ matrix.arch }}.zip
prerelease: true

0 comments on commit 9667a08

Please sign in to comment.