Skip to content

Commit

Permalink
separate build and nightly build workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnrd committed Jun 22, 2023
1 parent 4fa0c32 commit 1e28d32
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 13 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,10 @@ name: Build toolchain
on:
workflow_call:
inputs:
nightly:
required: false
type: boolean
default: false
all-platforms:
required: false
default: false
type: boolean
secrets:
envPAT:
required: false
workflow_dispatch:

jobs:
Expand Down
34 changes: 28 additions & 6 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,31 @@ on:
workflow_dispatch:

jobs:
build:
uses: ./.github/workflows/build.yml
with:
nightly: true
secrets:
envPAT: ${{ secrets.NIGHTLY_BUILD }}
nightly-build:
runs-on: ubuntu-latest
steps:
- name: Check out lingua-franca repository
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Prepare build environment
uses: ./.github/actions/prepare-build-env
- name: Build and package lf cli tools (nightly build)
shell: bash
run: |
export TIMESTAMP="$(date +'%Y%m%d%H%M%S')"
./gradlew build -Pnightly=$TIMESTAMP -PtargetOS=Linux -PtargetArch=x86_64
./gradlew assemble -Pnightly=$TIMESTAMP -PtargetOS=Linux -PtargetArch=aarch64
./gradlew assemble -Pnightly=$TIMESTAMP -PtargetOS=MacOS -PtargetArch=x86_64
./gradlew assemble -Pnightly=$TIMESTAMP -PtargetOS=MacOS -PtargetArch=aarch64
./gradlew assemble -Pnightly=$TIMESTAMP -PtargetOS=Windows -PtargetArch=x86_64
- name: Deploy nightly release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.NIGHTLY_BUILD }}"
automatic_release_tag: 'nightly'
prerelease: true
title: "Lingua Franca Nightly"
files: |
build/distributions/*

0 comments on commit 1e28d32

Please sign in to comment.