-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into v3_issue_612-integrat…
…iontest
- Loading branch information
Showing
58 changed files
with
2,311 additions
and
2,299 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM ubuntu:22.04 | ||
|
||
RUN apt-get update -y && apt-get upgrade -y && apt-get clean -y | ||
|
||
# Install packages for building HIRS ACA | ||
RUN apt-get -y install openjdk-17-jdk mariadb-server | ||
RUN apt-get -y install git curl nano cron | ||
|
||
# Ports needed for system-level tests | ||
EXPOSE 8080 | ||
EXPOSE 8443 | ||
|
||
# Checkout HIRS main branch and run gradlew to install gradlew dependencies, then delete HIRS | ||
# Use '--depth=1' so as to not download the history of all commits | ||
RUN git clone -b main --depth=1 https://github.com/nsacyber/HIRS.git /hirsTemp | ||
WORKDIR "/hirsTemp" | ||
RUN /bin/bash -c './gradlew clean build' | ||
WORKDIR "/" | ||
RUN rm -rf /hirsTemp |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: HIRS build and packages for Linux | ||
on: | ||
push: | ||
branches: | ||
- '*v3*' | ||
- 'main' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
# run the package script for HIRS ACA, Provisioners, tcg_rim_tool, and tcg_eventlog_tool | ||
Package_linux: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | ||
settings-path: ${{ github.workspace }} # location for the settings.xml file | ||
- name: directory setup | ||
run: | | ||
mkdir -p artifacts/jars | ||
- name: install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install git curl nano cron mariadb-server | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
- name: Execute Gradle build | ||
run: | | ||
./gradlew build; | ||
./gradlew bootWar; | ||
./gradlew buildDeb; | ||
./gradlew buildRpm; | ||
cp HIRS_AttestationCAPortal/build/libs/*.jar artifacts/jars/. | ||
cp HIRS_AttestationCA/build/libs/*.jar artifacts/jars/. | ||
cp HIRS_Utils/build/libs/*.jar artifacts/jars/. | ||
cp HIRS_Structs/build/libs/*.jar artifacts/jars/. | ||
- name: Archive RPM files | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: RPM_Files | ||
path: HIRS_AttestationCAPortal/build/distributions/*.rpm | ||
if-no-files-found: error | ||
- name: Archive DEB files | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: DEB_Files | ||
path: HIRS_AttestationCAPortal/build/distributions/*.deb | ||
if-no-files-found: error | ||
- name: War files | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: WAR_Files | ||
path: HIRS_AttestationCAPortal/build/libs/HIRS_AttestationCAPortal.war | ||
if-no-files-found: error | ||
- name: JAR_Files | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: JAR_Files | ||
path: artifacts/jars/ | ||
if-no-files-found: error | ||
|
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
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
223 changes: 0 additions & 223 deletions
223
HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/PCRQuoteValidator.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.