Up timeout for enclave build. #83
This file contains hidden or 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: Service CI | |
| on: [push] | |
| env: | |
| DOCKER_BUILD_ARGS: --cache-from type=gha --cache-to type=gha | |
| DOCKER_BUILDKIT: 1 | |
| BUILDX_CONTAINER: container | |
| jobs: | |
| c-tests: | |
| name: C tests | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 60 | |
| permissions: | |
| packages: read | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Checkout main project | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| submodules: recursive | |
| - name: Expose Docker environment variables for gha cache | |
| uses: crazy-max/ghaction-github-runtime@3cb05d89e1f492524af3d41a1c98c83bc3025124 # v3.1.0 | |
| - name: Setup Docker | |
| run: docker buildx create --use --name container --driver docker-container | |
| - name: Test C | |
| working-directory: c | |
| run: make docker_tests | |
| c-build: | |
| name: C build | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 60 | |
| permissions: | |
| packages: read | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Checkout main project | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| submodules: recursive | |
| - name: Expose Docker environment variables for gha cache | |
| uses: crazy-max/ghaction-github-runtime@3cb05d89e1f492524af3d41a1c98c83bc3025124 # v3.1.0 | |
| - name: Setup Docker | |
| run: docker buildx create --use --name container --driver docker-container | |
| - name: Build all C | |
| working-directory: c | |
| run: make docker_all | |
| c-valgrinds: | |
| name: C valgrind tests | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 60 | |
| permissions: | |
| packages: read | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Checkout main project | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| submodules: recursive | |
| - name: Expose Docker environment variables for gha cache | |
| uses: crazy-max/ghaction-github-runtime@3cb05d89e1f492524af3d41a1c98c83bc3025124 # v3.1.0 | |
| - name: Setup Docker | |
| run: docker buildx create --use --name container --driver docker-container | |
| - name: Valgrind tests | |
| working-directory: c | |
| run: make docker_valgrinds | |
| java-tests: | |
| name: Java tests | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 60 | |
| permissions: | |
| packages: read | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Checkout main project | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| submodules: recursive | |
| - name: Expose Docker environment variables for gha cache | |
| uses: crazy-max/ghaction-github-runtime@3cb05d89e1f492524af3d41a1c98c83bc3025124 # v3.1.0 | |
| - name: Setup Docker | |
| run: docker buildx create --use --name container --driver docker-container | |
| - name: Set up JDK | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version-file: .java-version | |
| cache: 'maven' | |
| - name: Set up necessary SGX stuff | |
| run: sudo ./c/docker/sgx_runtime_libraries.sh | |
| - name: Build and test with Maven | |
| run: ./mvnw -e -B verify | |
| - name: Build and test lambda with Maven | |
| working-directory: filter-cds-updates | |
| run: ../mvnw -e -B verify |