# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # name: "CI :: Build" on: workflow_dispatch: concurrency: group: ${{ github.event.pull_request && format('ci-build-full-pr-{0}', github.event.pull_request.number) || format('ci-build-full-push-main-{0}', github.sha) }} cancel-in-progress: true env: TMPDIR: "/tmp" BUILD_ENV__accessErrorsLogFileAbsolutePath: "/tmp/build-env-access-errors.log" jobs: run: if: github.event.pull_request.draft == false strategy: fail-fast: false matrix: os: [ubuntu-latest] runs-on: ${{ matrix.os }} steps: - name: "Checkout @ GitHub default" uses: actions/checkout@v3 - name: "Setup environment" if: steps.setup_build_mode.outputs.mode != 'none' uses: ./.github/actions/setup-env - name: Apply local fixes#################################################################################################### shell: bash run: | rm -rf packages/sonataflow-builder-image/dist/tmp-m2/repository || true rm -r ./packages/maven-base/.mvn || true rm -r /home/fantonan/NotBackedUp/repos/kie-tools/tmp || true rm -r /home/fantonan/NotBackedUp/repos/drools || true rm -r /home/fantonan/NotBackedUp/repos/kogito-runtimes || true rm -r /home/fantonan/NotBackedUp/repos/kogito-apps || true sed -i 's/go mod tidy/true/g' \ examples/kie-sandbox-commit-message-validation-service/package.json \ packages/dev-deployment-upload-service/package.json \ packages/extended-services/package.json \ packages/image-env-to-json/package.json \ packages/kn-plugin-workflow/package.json \ packages/sonataflow-operator/Makefile \ packages/sonataflow-operator/package.json rm -rf packages/drools-and-kogito/dist || true - name: "Bootstrap" if: steps.setup_build_mode.outputs.mode != 'none' env: MAVEN_ARGS: "-B -Puse-maven-repo-local-tail" MAVEN_OPTS: "-Xmx3g" uses: ./.github/actions/bootstrap with: pnpm_filter_string: ""