Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create sign_executable.yml #56

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
168 changes: 84 additions & 84 deletions .github/workflows/pull_request_check.yml
Original file line number Diff line number Diff line change
@@ -1,84 +1,84 @@
name: Check New Pull Request

on:
push:
branches: [ main ]
pull_request:
branches: [ '**' ]

jobs:
build:
name: Check if passes all requirements
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]

steps:
- name: Checkout project
uses: actions/checkout@v3

- name: Configure Pagefile
if: matrix.os == 'windows-latest'
# Fix for "LINK : fatal error LNK1171: unable to load mspdbcore.dll (error code: 1455)":
# This seems to be caused by running out of memory; increasing page file
# size suggested here:
# https://github.com/actions/virtual-environments/issues/3420#issuecomment-861342418
uses: al-cheb/[email protected]
with:
minimum-size: 16GB
maximum-size: 16GB
disk-root: "C:"

- name: Setup graalvm ce
uses: graalvm/setup-graalvm@v1
with:
version: '22.3.1'
java-version: '17'
components: 'native-image,js'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Cache maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Creating native image (Mac)
if: matrix.os == 'macos-latest'
run: mvn install -P native-image -Dos.platform=mac -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Creating native image (Linux)
if: matrix.os == 'ubuntu-latest'
run: mvn install -P native-image -Dos.platform=linux -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Creating native image (Win)
if: matrix.os == 'windows-latest'
run: mvn install -P native-image -D os.platform=win -D maven.wagon.httpconnectionManager.ttlSeconds=60
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Performing integration test for Mac
if: matrix.os == 'macos-latest'
run: mvn install -DskipTests -P dependencies-for-integration-tests,start-unix-native-image-for-integration-tests,run-postman-integration-tests -Dos.platform=mac
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Performing integration test for Linux
if: matrix.os == 'ubuntu-latest'
run: mvn install -DskipTests -P dependencies-for-integration-tests,start-unix-native-image-for-integration-tests,run-postman-integration-tests -Dos.platform=linux
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Performing integration test for Windows
if: matrix.os == 'windows-latest'
run: mvn install -DskipTests -P dependencies-for-integration-tests,start-windows-native-image-for-integration-tests,run-postman-integration-tests -D os.platform=win
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
#name: Check New Pull Request
#
#on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ '**' ]
#
#jobs:
# build:
# name: Check if passes all requirements
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: [ macos-latest, windows-latest, ubuntu-latest ]
#
# steps:
# - name: Checkout project
# uses: actions/checkout@v3
#
# - name: Configure Pagefile
# if: matrix.os == 'windows-latest'
# # Fix for "LINK : fatal error LNK1171: unable to load mspdbcore.dll (error code: 1455)":
# # This seems to be caused by running out of memory; increasing page file
# # size suggested here:
# # https://github.com/actions/virtual-environments/issues/3420#issuecomment-861342418
# uses: al-cheb/[email protected]
# with:
# minimum-size: 16GB
# maximum-size: 16GB
# disk-root: "C:"
#
# - name: Setup graalvm ce
# uses: graalvm/setup-graalvm@v1
# with:
# version: '22.3.1'
# java-version: '17'
# components: 'native-image,js'
# github-token: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Cache maven packages
# uses: actions/cache@v3
# with:
# path: ~/.m2/repository
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
# restore-keys: |
# ${{ runner.os }}-maven-
#
# - name: Creating native image (Mac)
# if: matrix.os == 'macos-latest'
# run: mvn install -P native-image -Dos.platform=mac -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
# env:
# TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Creating native image (Linux)
# if: matrix.os == 'ubuntu-latest'
# run: mvn install -P native-image -Dos.platform=linux -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
# env:
# TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Creating native image (Win)
# if: matrix.os == 'windows-latest'
# run: mvn install -P native-image -D os.platform=win -D maven.wagon.httpconnectionManager.ttlSeconds=60
# env:
# TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Performing integration test for Mac
# if: matrix.os == 'macos-latest'
# run: mvn install -DskipTests -P dependencies-for-integration-tests,start-unix-native-image-for-integration-tests,run-postman-integration-tests -Dos.platform=mac
# env:
# TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Performing integration test for Linux
# if: matrix.os == 'ubuntu-latest'
# run: mvn install -DskipTests -P dependencies-for-integration-tests,start-unix-native-image-for-integration-tests,run-postman-integration-tests -Dos.platform=linux
# env:
# TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Performing integration test for Windows
# if: matrix.os == 'windows-latest'
# run: mvn install -DskipTests -P dependencies-for-integration-tests,start-windows-native-image-for-integration-tests,run-postman-integration-tests -D os.platform=win
# env:
# TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/sign_executable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Sign Executable"

on:
push:
pull_request:
branches: [ '**' ]
jobs:
trigger-build:
runs-on: ubuntu-latest
steps:
- name: Trigger Jenkins Job, for singing executable
run: |
DATA='{"repository": {"url": "https://github.com/eclipse-esmf/esmf-aspect-model-editor-backend", "html_url": "https://github.com/eclipse-esmf/esmf-aspect-model-editor-backend", "owner": { "name": "eclipse-cbi"}}, "pusher": { "name": "foobar", "email": "[email protected]"}}'
SHA1="$(echo -n "${DATA}" | openssl dgst -sha1 -hmac "${WEBHOOK_SECRET}" | sed 's/SHA1(stdin)= //')"

curl -X POST https://ci.eclipse.org/esmf/github-webhook/ -H "Content-Type: application/json" -H "X-GitHub-Event: push" -H "X-Hub-Signature: sha1=${SHA1}" -d "${DATA}"

Loading