diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb56f84..847998c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,8 @@ name: build -on: [push, pull_request] +permissions: write-all + +on: push jobs: build: @@ -18,7 +20,8 @@ jobs: os: - windows-2022 - ubuntu-20.04 - #- macos-11 + - macos-11 + - macos-14 arch: - x64 steps: @@ -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/upload-release-action@2.9.0 - #with: - #overwrite: true - #tag: v0.1 - #file: foo.zip - #asset_name: madnlp-jl${{ matrix.version}}-${{ matrix.os }}-${{ matrix.arch }}.zip - #prerelease: true - uses: actions/upload-artifact@v4.3.1 with: name: madnlp-jl${{ matrix.version}}-${{ matrix.os }}-${{ matrix.arch }} path: foo.zip + - name: Upload files to a GitHub release + uses: svenstaro/upload-release-action@2.9.0 + 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