@@ -62,50 +62,45 @@ jobs:
62
62
#
63
63
# KMC Build
64
64
#
65
- # kmc_build:
66
- # # Container Setup
67
- # runs-on: ubuntu-latest
68
- # steps:
69
- # - uses: actions/checkout@v4
70
- # - name: Update
71
- # run: sudo apt-get update
72
- # - name: Install Dependencies
73
- # run: sudo apt-get install -y lcov libcurl4-openssl-dev libmariadb-dev libmariadb-dev-compat python3
74
- # - name: Install Python Libraries
75
- # run: sudo pip install pycryptodome
76
- # - name: Install Libgcrypt
77
- # run: >
78
- # curl
79
- # -LS https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.50.tar.bz2
80
- # -o /tmp/libgpg-error-1.50.tar.bz2
81
- # && tar -xjf /tmp/libgpg-error-1.50.tar.bz2 -C /tmp/
82
- # && cd /tmp/libgpg-error-1.50
83
- # && sudo ./configure
84
- # && sudo make install
85
- # && curl
86
- # -LS https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.11.0.tar.bz2
87
- # -o /tmp/libgcrypt-1.11.0.tar.bz2
88
- # && tar -xjf /tmp/libgcrypt-1.11.0.tar.bz2 -C /tmp/
89
- # && cd /tmp/libgcrypt-1.11.0
90
- # && sudo ./configure
91
- # && sudo make install
92
- # && sudo ldconfig
93
- # # End Container Setup
94
-
95
- # - name: KMC Build Script
96
- # working-directory: ${{github.workspace}}
97
- # run: bash ${GITHUB_WORKSPACE}/support/scripts/build_kmc.sh
98
-
99
- # - name: Code-Coverage
100
- # working-directory: ${{github.workspace}}
101
- # run: make gcov
102
-
103
- # - name: Upload
104
- # uses: codecov/codecov-action@v4
105
- # with:
106
- # token: ${{ secrets.CODECOV_TOKEN }}
107
- # files: 'coverage/*.c.gcov'
108
- # verbose: true
65
+ kmc_build :
66
+ # Container Setup
67
+ runs-on : ubuntu-latest
68
+ container :
69
+ image : ivvitc/cryptolib:20250108
70
+ steps :
71
+ - uses : actions/checkout@v4
72
+ with :
73
+ repository : NASA-AMMOS/DCS
74
+ path : DCS
75
+ submodules : recursive
76
+ - name : setup python
77
+ uses : actions/setup-python@v5
78
+ with :
79
+ python-version : ' 3.11'
80
+ - name : Set current branch
81
+ run : echo "BRANCH_NAME=$(echo ${{ github.head_ref || github.ref_name }})" >> $GITHUB_ENV
82
+ - name : Update
83
+ run : apt-get update
84
+ - name : Install Dependencies
85
+ run : apt-get install -y libcurl4-openssl-dev libmariadb-dev libmariadb-dev-compat python3 openjdk-17-jdk openjdk-17-jre cmake swig maven podman default-jdk
86
+ - name : Install Python Libraries
87
+ run : |
88
+ pip3 install --break-system-packages pycryptodome cffi invoke
89
+ - name : update Cryptolib
90
+ run : |
91
+ cd DCS/ammos-cryptolib
92
+ rm -rf CryptoLib
93
+ git clone --single-branch --branch $BRANCH_NAME https://github.com/nasa/CryptoLib.git
94
+ - name : add required jars
95
+ run : |
96
+ cd DCS/ammos-cryptolib/kmc_sdls/kmc_sdls_java/kmc_sdls_java_test
97
+ curl -LS https://repo1.maven.org/maven2/junit/junit/4.13.2/junit-4.13.2.jar -o ./junit-4.13.2.jar
98
+ curl -LS https://repo1.maven.org/maven2/org/hamcrest/hamcrest/2.2/hamcrest-2.2.jar -o ./hamcrest-2.2.jar
99
+ - name : build DCS
100
+ run : |
101
+ cd ./DCS
102
+ export JAVA_HOME=/lib/jvm/java-17-openjdk-amd64
103
+ ./kmc-resources/scripts/build.sh
109
104
110
105
#
111
106
# Wolf Build
0 commit comments