Skip to content

Experimental Release #559

Experimental Release

Experimental Release #559

name: Experimental Release
on:
workflow_dispatch:
workflow_run:
workflows: ["Increment Paclet Version"]
types:
- completed
branches: [main]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
WOLFRAMSCRIPT_ENTITLEMENTID: ${{ secrets.WOLFRAMSCRIPT_ENTITLEMENTID }}
WOLFRAM_SYSTEM_ID: Linux-x86-64
GH_INSTALL_URL: https://github.com/cli/cli/releases/download/v2.33.0/gh_2.33.0_linux_amd64.deb
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WOLFRAMINIT: -lmverbose
jobs:
Build:
runs-on: ubuntu-latest
timeout-minutes: 15
container:
image: wolframresearch/wolframengine:14.3.0
options: --user root
steps:
- name: Update Git
run: |
apt-get update && apt-get install software-properties-common -y
add-apt-repository ppa:git-core/ppa -y
apt-get update && apt-get install git -y
curl -fsSL ${{ env.GH_INSTALL_URL }} -o gh.deb
dpkg -i gh.deb
- name: Checkout
uses: actions/checkout@v4
- name: Download Snippets
run: |
apt-get update && apt-get install -y unzip
mkdir -p Assets/Snippets/Streamable/Documentation
mkdir -p Assets/Snippets/Streamable/ResourceSystem
curl -L -o /tmp/Documentation.zip "https://www.wolframcloud.com/obj/wolframai-content/StreamableSnippets/Documentation/15-0-0-13528852.zip"
curl -L -o /tmp/ResourceSystem.zip "https://www.wolframcloud.com/obj/wolframai-content/StreamableSnippets/ResourceSystem/1-1-0.zip"
unzip -o /tmp/Documentation.zip -d Assets/Snippets/Streamable/Documentation
unzip -o /tmp/ResourceSystem.zip -d Assets/Snippets/Streamable/ResourceSystem
- name: Build Paclet
run: wolframscript -f Scripts/BuildPaclet.wls --snippets=false --wolfram-version=15.0+
# TODO: Remove this wolfram-version override once 15.0 docker images are available
- name: Rename Paclet File
run: mv "${{ env.PACLET_PATH }}" "${{ env.PACLET_BUILD_DIR }}/Wolfram__Chatbook.paclet"
- name: Update Release
run: |
git config --global --add safe.directory $(pwd)
if ! gh release view experimental; then
gh release create experimental \
--target="${{ github.ref }}" \
--repo="${{ github.repository }}" \
--title="Experimental Release" \
--notes="This is an experimental release that's always updated with the latest build from the main branch." \
--prerelease
fi
gh release upload experimental \
"${{ env.PACLET_BUILD_DIR }}/Wolfram__Chatbook.paclet" \
--clobber \
--repo="${{ github.repository }}"