Skip to content

Commit

Permalink
CI: Add packaging step for asy.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamievlin committed Aug 25, 2024
1 parent f92cb62 commit 5581007
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/package-asy-installer-win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: package-asy-installer-win
on:
workflow_call:

jobs:
package-asy-installer:
runs-on: "windows-2022"
steps:
- name: Install prequisites
run: choco install nsis -y
- name: Test nsis version
run: makensis /version
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: asy-win-x64-buildfiles
path: cmake-build-msvc/release/
- name: Download asymptote misc docs
uses: actions/download-artifact@v4
with:
name: asy-win-x64-misc-docs
path: cmake-build-msvc/release/docbuild
- name: Download GUI files
uses: actions/download-artifact@v4
with:
name: cmake-windows-gui-files
path: GUI/
- name: Download asymptote.pdf
uses: actions/download-artifact@v4
with:
name: asy-pdf-file
path: extfiles
- name: do cmake install
run: cmake --install cmake-build-msvc/release --component asy-pre-nsis
- name: Build installer file
run: |
$makensisexc=(Get-Command makensis).Path
& ./cmake-install-w32-nsis-release/build-asy-installer.ps1 -makensis-exec=$makensisexc
- name: Upload generated installer
uses: actions/download-artifact@v4
with:
name: cmake-windows-gui-files
path: cmake-install-w32-nsis-release/asymptote-*-setup.exe
14 changes: 14 additions & 0 deletions .github/workflows/pull-req-precheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,17 @@ jobs:
uses: ./.github/workflows/test-asy-windows.yml
build-gui:
uses: ./.github/workflows/build-gui.yml
package-asy-install-file:
needs:
- build-asy-windows
- build-gui
- build-asy-linux
uses: ./.github/workflows/package-asy-installer-win.yml
precheck-pass: # this is a dummy step with the sole purpose of making the PR need only this job to pass
needs:
- test-asy-linux
- test-asy-linux
- package-asy-install-file
runs-on: "ubuntu-22.04"
steps:
- run: echo All prechecks pass!

0 comments on commit 5581007

Please sign in to comment.