forked from lf-lang/lingua-franca
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.46 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build toolchain
on:
workflow_call:
inputs:
nightly:
required: false
type: boolean
default: false
secrets:
envPAT:
required: false
workflow_dispatch:
jobs:
run:
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)
run: .github/scripts/package-cli.sh nightly
shell: bash
if: ${{ inputs.nightly == true }}
- name: Build and package lf cli tools (regular build)
run: .github/scripts/package-cli.sh
shell: bash
if: ${{ inputs.nightly != true }}
- name: Check Maven/Java configuration
run: mvn -version
shell: bash
- name: Build and package epoch
run: mvn package || mvn -U package
shell: bash
- name: Deploy nightly release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.envPAT }}"
automatic_release_tag: 'nightly'
prerelease: true
title: "Lingua Franca Nightly"
files: |
org.lflang.rca/target/products/*.tar.gz
org.lflang.rca/target/products/*.zip
build_upload/*
if: ${{ inputs.nightly == true }}