Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Allow building against lingua-franca fork #53

Merged
merged 4 commits into from
Sep 15, 2023
Merged
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
23 changes: 21 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,27 @@ on:
workflow_call:
inputs:
nightly:
required: false
type: boolean
description: Whether this is a nightly build
required: false
default: false
upload-artifacts:
type: boolean
description: Whether to upload build artifacts
required: false
default: true
epoch-ref:
type: string
description: Ref of the epoch repository to check out
required: false
default: main
lingua-franca-ref:
type: string
description: Ref of the lingua-franca submodule to check out
required: false
lingua-franca-repo:
type: string
description: Full repository name of the form <owner>/<repo>
required: false
secrets:
gpg-passphrase:
Expand All @@ -36,6 +48,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: lf-lang/epoch
ref: ${{ inputs.epoch-ref }}
submodules: recursive
fetch-depth: 0
- uses: actions/setup-java@v3
Expand All @@ -45,13 +58,19 @@ jobs:
- name: Check Maven/Java configuration
run: mvn -version
shell: bash
- name: Point submodule to given repo
run: |
git submodule set-url -- org.lflang/lingua-franca https://github.com/${{ inputs.lingua-franca-repo }}
git submodule update --init --recursive
shell: bash
if: ${{ inputs.lingua-franca-repo != '' }}
- name: Update `lingua-franca` submodule
run: |
cd org.lflang/lingua-franca
git fetch --all
git checkout ${{ inputs.lingua-franca-ref }}
git pull
git submodule update
git submodule update --recursive
shell: bash
if: ${{ inputs.lingua-franca-ref != '' }}
- name: Configure Git for francabot
Expand Down