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

Adding the inverted conditions #70

Draft
wants to merge 31 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
ac736b0
Remote repository scanning improvements progress
brianwyka Dec 11, 2021
75e5054
remote-repository: Remote repository file reading improvements for B…
brianwyka Dec 13, 2021
74635f5
remote-repository: Fix maven version
brianwyka Jan 6, 2022
ac60c93
remote-repository: Update groovy to 3.0.9 for JDK 17 support
brianwyka Jan 6, 2022
546c03a
remote-repository: Fix maven version in test
brianwyka Jan 6, 2022
d80fc05
remote-repository: Fix more tests for JDK 17
brianwyka Jan 7, 2022
2068eda
remote-repository: Fix Dockerfile ci images references
brianwyka Jan 7, 2022
cc2fa22
remote-repository: Fix java8 graalvm version
brianwyka Jan 7, 2022
7ddac54
remote-repository: Vulnerability fixes, Fixes #38, Fixes #59, update…
brianwyka Jan 7, 2022
915366d
remote-repository: Login to GHCR with correct creds
brianwyka Jan 7, 2022
31c48bf
remote-repository: Update static native imate to be -H:+StaticExecut…
brianwyka Jan 7, 2022
0dbbc01
remote-repository: Update busybox
brianwyka Jan 7, 2022
fe26db4
remote-repository: Static native image builds on musl, scratch Docke…
brianwyka Jan 22, 2022
0c75dfe
remote-repository: Update github workflows
brianwyka Jan 22, 2022
80531bc
remote-repository: Fix native image builder and push to ghcr
brianwyka Jan 22, 2022
1ddfcf7
remote-repository: Fix docker image builder for native image musl, a…
brianwyka Jan 22, 2022
35bfe1b
remote-repository: Push docker builders
brianwyka Jan 22, 2022
4950433
remote-repository: Push docker builders
brianwyka Jan 22, 2022
a0a57ac
remote-repository: 0.7.0
brianwyka Jan 22, 2022
c61d431
remote-repository: Skip native image build for java 8
brianwyka Jan 22, 2022
e23b5f1
remote-repository: Skip native image build for java 8
brianwyka Jan 22, 2022
e611c42
remote-repository: Fix java8 build and workflow dependencies
brianwyka Jan 22, 2022
27f1624
remote-repository: Fix needs syntax
brianwyka Jan 23, 2022
1758b92
remote-repository: 1.8 reference to identigy java 8 in mvn profile
brianwyka Jan 23, 2022
05be46b
remote-repository: Skip failsafe integration tests for java8
brianwyka Jan 23, 2022
8b6d5c6
remote-repository: Only build dist when not java 8
brianwyka Jan 23, 2022
df01c7f
remote-repository: Fix dist pom
brianwyka Jan 23, 2022
9597d76
remote-repository: Don't cache docker builders
brianwyka Jan 23, 2022
873a4cb
remote-repository: Only build dist for java 11, use 20.3.0 for windo…
brianwyka Jan 23, 2022
e1c89f2
Revert to Test Report
brianwyka Jan 23, 2022
9b67c4a
WIP: adding more enforcers for NOT conditions
ctoestreich Jan 24, 2022
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
81 changes: 74 additions & 7 deletions .github/workflows/build-and-push-docker-builders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,79 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Git Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.ref }}
- name: Build and Push Docker Images to Github Container Registry
shell: bash
run: ./distributions/scripts/build-and-push-docker-builders.sh
env:
DOCKER_USERNAME: ${{ secrets.GIT_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.GIT_PACKAGE_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to Github Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.GIT_USERNAME }}
password: ${{ secrets.GIT_PACKAGE_TOKEN }}
- name: Build and Push graalvm-ce-21.3.0-java11
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: distributions/docker-builders/Dockerfile-nativeimage
build-args: FROM_VERSION=java11-21.3.0
tags: ghcr.io/optum/ci/nativeimage:graalvm-ce-21.3.0-java11
push: true
- name: Build and Push graalvm-ce-21.3.0-java17
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: distributions/docker-builders/Dockerfile-nativeimage
build-args: FROM_VERSION=java17-21.3.0
tags: ghcr.io/optum/ci/nativeimage:graalvm-ce-21.3.0-java17
push: true
- name: Build and Push rpmbuild centos7
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: distributions/docker-builders/Dockerfile-rpmbuild
build-args: FROM=centos:7
tags: ghcr.io/optum/ci/rpmbuild:centos7
push: true
- name: Build and Push rpmbuild centos8
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: distributions/docker-builders/Dockerfile-rpmbuild
build-args: FROM=centos:8
tags: ghcr.io/optum/ci/rpmbuild:centos8
push: true
- name: Build and Push rpmbuild fedora33
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: distributions/docker-builders/Dockerfile-rpmbuild
build-args: FROM=fedora:33
tags: ghcr.io/optum/ci/rpmbuild:fedora33
push: true
- name: Build and Push rpmbuild fedora34
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: distributions/docker-builders/Dockerfile-rpmbuild
build-args: FROM=fedora:34
tags: ghcr.io/optum/ci/rpmbuild:fedora34
push: true
- name: Build and Push rpmbuild fedora35
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: distributions/docker-builders/Dockerfile-rpmbuild
build-args: FROM=fedora:35
tags: ghcr.io/optum/ci/rpmbuild:fedora35
push: true
50 changes: 22 additions & 28 deletions .github/workflows/maven-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,26 +79,26 @@ jobs:
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_GPG_PASSPHRASE: ${{ secrets.SONATYPE_GPG_PASSPHRASE }}
- name: Archive Native Image JAR
if: success()
if: success() && (matrix.java == '11')
uses: actions/upload-artifact@v2
with:
name: native-image-${{ matrix.java }}
path: cli/target/*-native-image.jar
- name: Archive Bash Completion Script
if: success()
if: success() && (matrix.java == '11')
uses: actions/upload-artifact@v2
with:
name: bash-completion-script-${{ matrix.java }}
path: cli/target/sourcehawk-bash-completion.sh
- name: Archive Manpages
if: success()
if: success() && (matrix.java == '11')
uses: actions/upload-artifact@v2
with:
name: manpages-${{ matrix.java }}
path: gh-pages/manpages/sourcehawk*.1
- name: Aggregate Coverage Reports
id: aggregate_coverage_reports
if: success()
if: success() && (matrix.java == '11')
run: echo ::set-output name=JACOCO_XML_REPORT_PATHS::$(find . -name "jacoco.xml" -printf '%P\n' | tr '\r\n' ',')
- name: Analyze with SonarCloud
if: success() && (github.event_name == 'push' && matrix.java == '11')
Expand All @@ -120,29 +120,26 @@ jobs:
steps:
- uses: actions/download-artifact@v2
with:
name: native-image-8
name: native-image-11
path: build
- uses: actions/download-artifact@v2
with:
name: bash-completion-script-8
name: bash-completion-script-11
path: build
- uses: actions/download-artifact@v2
with:
name: manpages-8
name: manpages-11
path: build
- name: Rename Native Image JAR
working-directory: build
run: mv *.jar native-image.jar
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 8
- name: Setup GraalVM
uses: DeLaGuardo/setup-graalvm@master
uses: graalvm/setup-graalvm@v1
with:
graalvm-version: 21.2.0.java8
- name: Setup GraalVM Native Image Tool
run: gu install native-image
version: '21.3.0'
java-version: '11'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Mac Native Image
if: success()
working-directory: build
Expand Down Expand Up @@ -172,6 +169,7 @@ jobs:
build-windows-native-image:
runs-on: windows-latest
needs: build
continue-on-error: true
steps:
- uses: actions/download-artifact@v2
with:
Expand All @@ -180,20 +178,16 @@ jobs:
- name: Rename Native Image JAR
working-directory: build
run: ren *.jar native-image.jar
- name: Setup GraalVM Native Image and Visual C Build Tools
run: |
Invoke-RestMethod -Uri https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-21.3.0/graalvm-ce-java11-windows-amd64-21.3.0.zip -OutFile 'graal.zip'
Expand-Archive -path 'graal.zip' -destinationpath '.'
graalvm-ce-java11-21.3.0\bin\gu.cmd install native-image
choco install visualstudio2017-workload-vctools
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
version: '20.3.0'
java-version: '11'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Windows Native Image
if: success()
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
graalvm-ce-java11-21.3.0\bin\native-image -cp .\build\native-image.jar -H:+ReportExceptionStackTraces --report-unsupported-elements-at-runtime
env:
JAVA_HOME: ./graalvm-ce-java11-21.3.0
run: native-image.cmd -cp .\build\native-image.jar -H:+ReportExceptionStackTraces --report-unsupported-elements-at-runtime
- name: Archive Windows Native Image
if: success()
continue-on-error: true
Expand All @@ -204,4 +198,4 @@ jobs:
- name: Smoke Test
if: success()
shell: cmd
run: sourcehawk.exe help
run: sourcehawk.exe help
Loading