Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 23 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ on:

env:
RESOURCE_PUBLISHER_TOKEN: ${{ secrets.RESOURCE_PUBLISHER_TOKEN }}
WOLFRAMSCRIPT_ENTITLEMENTID: ${{ secrets.WOLFRAMSCRIPT_ENTITLEMENTID }}
WLPR_PACLET_SITE: https://resources.wolframcloud.com/PacletRepository/pacletsite

jobs:
build:
name: Build
runs-on: ubuntu-latest
container:
image: wolframresearch/wolframengine:latest
image: jonmcloone/wwe:LabJul1
options: --user root
env:
WOLFRAM_SYSTEM_ID: Linux-x86-64
Expand All @@ -42,11 +41,29 @@ jobs:
EOF
fi

- name: Install build tooling
run: |
apt-get update && apt-get install -y --no-install-recommends git ca-certificates
git clone --depth 1 --branch v0.36.0 https://github.com/WolframResearch/PacletCICD.git /tmp/PacletCICD
git clone --depth 1 --branch v1.11.0 https://github.com/WolframResearch/build-paclet.git /tmp/build-paclet
wolframscript -code 'PacletDirectoryAdd["/tmp/PacletCICD"]; Needs["Wolfram`PacletCICD`"]; Print["Loaded PacletCICD from: ", FindFile["Wolfram`PacletCICD`"]]'

- name: Build
uses: WolframResearch/build-paclet@v1.11.0
with:
target: Build
paclet_cicd_version: 0.36.0
env:
INPUT_TARGET: Build
INPUT_CHECK: "true"
INPUT_DEBUG: "false"
INPUT_DEFINITION_NOTEBOOK: ./ResourceDefinition.nb
INPUT_PACLET_CICD_VERSION: "0.36.0"
INPUT_RESOURCE_SYSTEM_BASE: https://www.wolframcloud.com/obj/resourcesystem/api/1.0
run: |
wolframscript -file /tmp/build-paclet/src/build_paclet.wls
WS_EXIT_CODE=$?
if [ "$WS_EXIT_CODE" -eq 139 ]; then
echo "::warning::Warning: wolframscript did not exit cleanly"
elif [ "$WS_EXIT_CODE" -ne 0 ]; then
exit "$WS_EXIT_CODE"
fi

- name: UploadArtifact
uses: actions/upload-artifact@v4
Expand Down
79 changes: 64 additions & 15 deletions .github/workflows/submit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ on:

env:
RESOURCE_PUBLISHER_TOKEN: ${{ secrets.RESOURCE_PUBLISHER_TOKEN }}
WOLFRAMSCRIPT_ENTITLEMENTID: ${{ secrets.WOLFRAMSCRIPT_ENTITLEMENTID }}
WLPR_PACLET_SITE: https://resources.wolframcloud.com/PacletRepository/pacletsite

jobs:
check:
name: Check
runs-on: ubuntu-latest
container:
image: wolframresearch/wolframengine:latest
image: jonmcloone/wwe:LabJul1
options: --user root
env:
WOLFRAM_SYSTEM_ID: Linux-x86-64
Expand All @@ -41,11 +40,28 @@ jobs:
EOF
fi

- name: Install build tooling
run: |
apt-get update && apt-get install -y --no-install-recommends git ca-certificates
git clone --depth 1 --branch v0.36.0 https://github.com/WolframResearch/PacletCICD.git /tmp/PacletCICD
git clone --depth 1 --branch v1.11.0 https://github.com/WolframResearch/check-paclet.git /tmp/check-paclet
wolframscript -code 'PacletDirectoryAdd["/tmp/PacletCICD"]; Needs["Wolfram`PacletCICD`"]; Print["Loaded PacletCICD from: ", FindFile["Wolfram`PacletCICD`"]]'

- name: Check
uses: WolframResearch/check-paclet@v1.11.0
with:
target: Submit
paclet_cicd_version: 0.36.0
env:
INPUT_TARGET: Submit
INPUT_DEBUG: "false"
INPUT_DEFINITION_NOTEBOOK: ./ResourceDefinition.nb
INPUT_PACLET_CICD_VERSION: "0.36.0"
INPUT_RESOURCE_SYSTEM_BASE: https://www.wolframcloud.com/obj/resourcesystem/api/1.0
run: |
wolframscript -file /tmp/check-paclet/src/check_paclet.wls
WS_EXIT_CODE=$?
if [ "$WS_EXIT_CODE" -eq 139 ]; then
echo "::warning::Warning: wolframscript did not exit cleanly"
elif [ "$WS_EXIT_CODE" -ne 0 ]; then
exit "$WS_EXIT_CODE"
fi

# - name: UploadWorkflowValues
# if: always() && env.PACLET_WORKFLOW_VALUES
Expand All @@ -59,7 +75,7 @@ jobs:
name: Test
runs-on: ubuntu-latest
container:
image: wolframresearch/wolframengine:latest
image: jonmcloone/wwe:LabJul1
options: --user root
env:
WOLFRAM_SYSTEM_ID: Linux-x86-64
Expand All @@ -84,11 +100,28 @@ jobs:
EOF
fi

- name: Install build tooling
run: |
apt-get update && apt-get install -y --no-install-recommends git ca-certificates
git clone --depth 1 --branch v0.36.0 https://github.com/WolframResearch/PacletCICD.git /tmp/PacletCICD
git clone --depth 1 --branch v1.11.0 https://github.com/WolframResearch/test-paclet.git /tmp/test-paclet
wolframscript -code 'PacletDirectoryAdd["/tmp/PacletCICD"]; Needs["Wolfram`PacletCICD`"]; Print["Loaded PacletCICD from: ", FindFile["Wolfram`PacletCICD`"]]'

- name: Test
uses: WolframResearch/test-paclet@v1.11.0
with:
target: Submit
paclet_cicd_version: 0.36.0
env:
INPUT_TARGET: Submit
INPUT_DEBUG: "false"
INPUT_DEFINITION_NOTEBOOK: ./ResourceDefinition.nb
INPUT_PACLET_CICD_VERSION: "0.36.0"
INPUT_RESOURCE_SYSTEM_BASE: https://www.wolframcloud.com/obj/resourcesystem/api/1.0
run: |
wolframscript -file /tmp/test-paclet/src/test_paclet.wls
WS_EXIT_CODE=$?
if [ "$WS_EXIT_CODE" -eq 139 ]; then
echo "::warning::Warning: wolframscript did not exit cleanly"
elif [ "$WS_EXIT_CODE" -ne 0 ]; then
exit "$WS_EXIT_CODE"
fi

# - name: UploadWorkflowValues
# if: always() && env.PACLET_WORKFLOW_VALUES
Expand All @@ -103,7 +136,7 @@ jobs:
needs: [check, test]
runs-on: ubuntu-latest
container:
image: wolframresearch/wolframengine:latest
image: jonmcloone/wwe:LabJul1
options: --user root
env:
WOLFRAM_SYSTEM_ID: Linux-x86-64
Expand All @@ -128,10 +161,26 @@ jobs:
EOF
fi

- name: Install build tooling
run: |
apt-get update && apt-get install -y --no-install-recommends git ca-certificates
git clone --depth 1 --branch v0.36.0 https://github.com/WolframResearch/PacletCICD.git /tmp/PacletCICD
git clone --depth 1 --branch v1.11.0 https://github.com/WolframResearch/submit-paclet.git /tmp/submit-paclet
wolframscript -code 'PacletDirectoryAdd["/tmp/PacletCICD"]; Needs["Wolfram`PacletCICD`"]; Print["Loaded PacletCICD from: ", FindFile["Wolfram`PacletCICD`"]]'

- name: Submit
uses: WolframResearch/submit-paclet@v1.11.0
with:
paclet_cicd_version: 0.36.0
env:
INPUT_DEFINITION_NOTEBOOK: ./ResourceDefinition.nb
INPUT_PACLET_CICD_VERSION: "0.36.0"
INPUT_RESOURCE_SYSTEM_BASE: https://www.wolframcloud.com/obj/resourcesystem/api/1.0
run: |
wolframscript -file /tmp/submit-paclet/src/submit_paclet.wls
WS_EXIT_CODE=$?
if [ "$WS_EXIT_CODE" -eq 139 ]; then
echo "::warning::Warning: wolframscript did not exit cleanly"
elif [ "$WS_EXIT_CODE" -ne 0 ]; then
exit "$WS_EXIT_CODE"
fi

- name: UploadArtifact
uses: actions/upload-artifact@v4
Expand Down
Loading