Skip to content

Commit

Permalink
Build Camel from source for camel-main branch builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Jul 21, 2023
1 parent 8f487a5 commit 96b6a98
Showing 1 changed file with 8 additions and 25 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@ jobs:
- name: Check free space on disk
run: |
df -h /
- name: Setup apache-snapshots profile
if: github.ref == 'refs/heads/camel-main' || github.base_ref == 'camel-main'
run: |
echo "BRANCH_OPTIONS=-Papache-snapshots" >> $GITHUB_ENV
- name: Setup oss-snapshots profile
if: github.ref == 'refs/heads/quarkus-main' || github.base_ref == 'quarkus-main'
run: |
Expand All @@ -139,6 +135,14 @@ jobs:
with:
distribution: 'temurin'
java-version: '17'
- name: Build Camel
if: github.ref == 'refs/heads/camel-main' || github.base_ref == 'camel-main'
run: |
cd ../
git clone --depth 1 --branch main https://github.com/apache/camel.git \
&& cd camel \
&& echo "Current Camel commit:" $(git rev-parse HEAD) \
&& ./mvnw ${CQ_MAVEN_ARGS} clean install -Dquickly
- name: Build Quarkus
if: github.ref == 'refs/heads/quarkus-main' || github.base_ref == 'quarkus-main'
run: |
Expand Down Expand Up @@ -188,10 +192,6 @@ jobs:
fail-fast: false
matrix: ${{ fromJson(needs.initial-mvn-install.outputs.matrix) }}
steps:
- name: Setup apache-snapshots profile
if: github.ref == 'refs/heads/camel-main' || github.base_ref == 'camel-main'
run: |
echo "BRANCH_OPTIONS=-Papache-snapshots" >> $GITHUB_ENV
- name: Setup oss-snapshots profile
if: github.ref == 'refs/heads/quarkus-main' || github.base_ref == 'quarkus-main'
run: |
Expand Down Expand Up @@ -265,10 +265,6 @@ jobs:
env:
MAVEN_OPTS: -Xmx3000m
steps:
- name: Setup apache-snapshots profile
if: github.ref == 'refs/heads/camel-main' || github.base_ref == 'camel-main'
run: |
echo "BRANCH_OPTIONS=-Papache-snapshots" >> $GITHUB_ENV
- name: Setup oss-snapshots profile
if: github.ref == 'refs/heads/quarkus-main' || github.base_ref == 'quarkus-main'
run: |
Expand Down Expand Up @@ -335,10 +331,6 @@ jobs:
env:
MAVEN_OPTS: -Xmx3000m
steps:
- name: Setup apache-snapshots profile
if: github.ref == 'refs/heads/camel-main' || github.base_ref == 'camel-main'
run: |
echo "BRANCH_OPTIONS=-Papache-snapshots" >> $GITHUB_ENV
- name: Setup oss-snapshots profile
if: github.ref == 'refs/heads/quarkus-main' || github.base_ref == 'quarkus-main'
run: |
Expand Down Expand Up @@ -390,11 +382,6 @@ jobs:
env:
MAVEN_OPTS: -Xmx3000m
steps:
- name: Setup apache-snapshots profile
shell: bash
if: github.ref == 'refs/heads/camel-main' || github.base_ref == 'camel-main'
run: |
echo "BRANCH_OPTIONS=-Papache-snapshots" >> $GITHUB_ENV
- name: Setup oss-snapshots profile
shell: bash
if: github.ref == 'refs/heads/quarkus-main' || github.base_ref == 'quarkus-main'
Expand Down Expand Up @@ -433,10 +420,6 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'JVM')
steps:
- name: Setup apache-snapshots profile
if: github.ref == 'refs/heads/camel-main' || github.base_ref == 'camel-main'
run: |
echo "BRANCH_OPTIONS=-Papache-snapshots" >> $GITHUB_ENV
- name: Setup oss-snapshots profile
if: github.ref == 'refs/heads/quarkus-main' || github.base_ref == 'quarkus-main'
run: |
Expand Down

0 comments on commit 96b6a98

Please sign in to comment.