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

Commit

Permalink
Merge pull request #53 from lf-lang/build-against-fork
Browse files Browse the repository at this point in the history
Allow building against lingua-franca fork
  • Loading branch information
lhstrh authored Sep 15, 2023
2 parents 9fcfb7d + 283e838 commit fc82ac1
Showing 1 changed file with 21 additions and 2 deletions.
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

0 comments on commit fc82ac1

Please sign in to comment.