Another change #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tools build CI | |
on: | |
push: | |
branches: | |
- main | |
env: | |
JENKINS_SERVER_IP: ${{ secrets.JENKINS_SERVER_IP }} | |
JENKINS_SERVER_NAME: ${{ secrets.JENKINS_SERVER_NAME }} | |
JENKINS_URL: ${{ secrets.JENKINS_URL }} | |
CERTS_SERVER_NAME: ${{ secrets.CERTS_SERVER_NAME }} | |
jobs: | |
build_linux: | |
runs-on: ["linux64","prod"] | |
container: | |
image: fr-qafactorydev.europe.altair.com/trigger-jenkins | |
credentials: | |
username: ${{secrets.DOCKER_REGISTRY_USER}} | |
password: ${{secrets.DOCKER_REGISTRY_PASSWD}} | |
volumes: | |
- /etc/localtime:/etc/localtime:ro | |
- /etc/docker/certs.d:/etc/docker/certs.d:ro | |
strategy: | |
# If one job fails others are canceled | |
fail-fast: true | |
matrix: | |
include: | |
- os: linux64 | |
compiler: intel | |
precision: dp | |
# - os: linux64 | |
# compiler: intel | |
# precision: sp | |
# - os: linuxa64 | |
# compiler: armflang | |
# precision: dp | |
# - os: linuxa64 | |
# compiler: armflang | |
# precision: sp | |
# - os: win64 | |
# compiler: intel | |
# precision: dp | |
# - os: win64 | |
# compiler: intel | |
# precision: sp | |
steps: | |
- name: Trigger jenkins | |
run: | | |
echo "$JENKINS_SERVER_IP $JENKINS_SERVER_NAME" >> /etc/hosts | |
echo "github.repository_owner : ${{ github.repository_owner }}" | |
cat /etc/hosts | |
USERLIB_SDK_JOB_NAME="dev_from_github_build_sdk_${{ matrix.os }}" | |
curl --capath "/etc/docker/certs.d/$CERTS_SERVER_NAME" --cacert "/etc/docker/certs.d/$CERTS_SERVER_NAME/wildcard_europe_altair_com.crt" -i \ | |
-X POST "$JENKINS_URL/job/$USERLIB_SDK_JOB_NAME/buildWithParameters?commit_id=$GITHUB_SHA&branch=$GITHUB_REF_NAME&precision=${{ matrix.precision }}&compiler=${{ matrix.compiler}}" | |