Skip to content

Commit

Permalink
Upload and retain opam.exe artifact
Browse files Browse the repository at this point in the history
Makes it easy for code reviewers (so they don't have to rebuild the source code).
Makes it easy to compare-and-constrast old version.

Helps ocaml#5718
  • Loading branch information
jonahbeckford committed Dec 12, 2023
1 parent 2592c14 commit f0b1755
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,26 @@ jobs:
run: bash -exu .github/scripts/main/ocaml-cache.sh ${{ runner.os }} ${{ matrix.ocamlv }} ${{ matrix.host }}
- name: Build
run: bash -exu .github/scripts/main/main.sh ${{ matrix.host }}
- name: 'Upload opam binaries for Windows'
if: endsWith(matrix.host, '-pc-windows')
uses: actions/upload-artifact@v3
with:
name: opam.exe ${{ matrix.host }} ${{ matrix.ocamlv }} ${{ matrix.build }}
retention-days: 30
path: |
D:\Local\bin\opam.exe
D:\Local\bin\opam-installer.exe
D:\Local\bin\opam-putenv.exe
- name: 'Upload opam binaries for Cygwin'
if: endsWith(matrix.host, '-pc-cygwin')
uses: actions/upload-artifact@v3
with:
name: opam.exe ${{ matrix.host }} ${{ matrix.ocamlv }} ${{ matrix.build }}
retention-days: 30
path: |
D:\Cache\cygwin\home\runneradmin\local\bin\opam.exe
D:\Cache\cygwin\home\runneradmin\local\bin\opam-installer.exe
D:\Cache\cygwin\home\runneradmin\local\bin\opam-putenv.exe
- name: Test (basic - Cygwin)
if: endsWith(matrix.host, '-pc-cygwin')
run: bash -exu .github/scripts/main/test.sh
Expand Down

0 comments on commit f0b1755

Please sign in to comment.