Create Nightly Build #820
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Nightly Build | |
on: | |
schedule: | |
# 20 past midnight on week days | |
- cron: '0 20 * * 1-5' | |
release: | |
types: [prereleased, released] | |
jobs: | |
create-nightly-build: | |
runs-on: ubuntu-latest | |
env: | |
RUNNER_IMAGE: "constellationapplication/netbeans-runner:21.0.2" | |
container: | |
image: docker://pandoc/latex:2.9 | |
options: --entrypoint=bash | |
steps: | |
- name: Update GH Actions Tools | |
run: | | |
apk update | |
apk upgrade | |
apk add --no-cache coreutils | |
apk add bash docker git | |
- name: Create Workspace Dir for operations | |
run: | | |
mkdir -p ./workspace | |
- name: Checkout Constellation repository | |
uses: actions/checkout@v4 | |
with: | |
repository: constellation-app/constellation | |
path: ./workspace/constellation | |
- name: Checkout Constellation Adaptors repository | |
uses: actions/checkout@v4 | |
with: | |
repository: constellation-app/constellation-adaptors | |
path: ./workspace/constellation-adaptors | |
- name: Checkout Constellation Applications repository | |
uses: actions/checkout@v4 | |
with: | |
repository: constellation-app/constellation-applications | |
path: ./workspace/constellation-applications | |
- name: Add Execute Privilege to Scripts | |
run: | | |
chmod +x ./workspace/constellation-applications/build-zip.sh | |
chmod +x ./workspace/constellation-applications/functions.sh | |
- name: Run build process within Docker container | |
run: | | |
docker pull "${RUNNER_IMAGE}" | |
docker run -e GIT_DISCOVERY_ACROSS_FILESYSTEM=1 \ | |
--mount "type=bind,source=/,target=/home/runner/work/constellation" \ | |
--workdir /home/runner/work/constellation/home/runner/work/constellation/constellation/workspace/constellation-applications \ | |
"${RUNNER_IMAGE}" \ | |
./build-zip.sh -a constellation -m "constellation constellation-adaptors" | |
- name: Upload Linux Build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Linux Nightly Build | |
path: ./workspace/constellation-applications/constellation/dist/constellation-linux** | |
retention-days: 2 | |
- name: Upload MacOS Build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: MacOSX Nightly Build | |
path: ./workspace/constellation-applications/constellation/dist/constellation-macosx** | |
retention-days: 2 | |
- name: Upload Windows Build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Windows Nightly Build | |
path: ./workspace/constellation-applications/constellation/dist/constellation-win**.zip | |
retention-days: 2 |