Skip to content

Commit a539209

Browse files
authored
Add config to build workflow #2 (#119)
1 parent 6b5949b commit a539209

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
type: string
1818
default: 'dev'
1919
push:
20-
branches: [ "dev" ]
20+
branches: [ "dev", "2-build-workflow" ]
2121

2222
jobs:
2323
build:
@@ -51,15 +51,17 @@ jobs:
5151
restore-keys: |
5252
maven-build-cache-
5353
- name: Install Poetry
54-
if: steps.cached-poetry.outputs.cache-hit != 'true'
5554
uses: snok/install-poetry@v1
5655
- name: Set up JDK 11
5756
uses: actions/setup-java@v4
5857
with:
5958
java-version: '11'
6059
distribution: 'temurin'
6160
- name: Build aiSSEMBLE
62-
run: ./mvnw -B clean install --file pom.xml -Pci
61+
run: |
62+
echo "$HOME/.pyenv/bin;/home/ubuntu/.local/bin" >> $GITHUB_PATH
63+
eval "$(pyenv init -)"
64+
./mvnw -B clean install --file pom.xml -Pci
6365
#NB: The following two explicit cache saves are necessary to ensure caches are saved on build failure,
6466
# until https://github.com/actions/cache/issues/1315 is resolved
6567
- name: Save m2 repository cache

0 commit comments

Comments
 (0)