Skip to content

Create Nightly Build #430

Create Nightly Build

Create Nightly Build #430

Workflow file for this run

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:12.0.4"
container:
image: docker:https://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@v2
with:
repository: constellation-app/constellation
path: ./workspace/constellation
- name: Checkout Constellation Adaptors repository
uses: actions/checkout@v2
with:
repository: constellation-app/constellation-adaptors
path: ./workspace/constellation-adaptors
- name: Checkout Constellation Applications repository
uses: actions/checkout@v2
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/[email protected]
with:
name: Linux Nightly Build
path: ./workspace/constellation-applications/constellation/dist/constellation-linux**
retention-days: 2
- name: Upload MacOS Build
uses: actions/[email protected]
with:
name: MacOSX Nightly Build
path: ./workspace/constellation-applications/constellation/dist/constellation-macosx**
retention-days: 2
- name: Upload Windows Build
uses: actions/[email protected]
with:
name: Windows Nightly Build
path: ./workspace/constellation-applications/constellation/dist/constellation-win**.zip
retention-days: 2