workflow: migrate Dockerfile from rats-tls to librats #291
Workflow file for this run
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
name: Basic Compilation Check | |
on: [push, pull_request] | |
jobs: | |
basic_complication_check: | |
# Run all steps in the compilation testing containers | |
strategy: | |
matrix: | |
tag: [anolis8.6, ubuntu20.04] | |
container: runetest/compilation-testing:${{ matrix.tag }} | |
# Use GitHub-hosted runner Ubuntu 20.04 | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
shell: bash | |
working-directory: ${{ github.workspace }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Compile "rats-tls" host mode | |
run: | |
source /root/.bashrc && cmake -DBUILD_SAMPLES=on -H. -Bbuild && make -C build install && make -C build clean && rm -rf build | |
env: | |
HOME: /root | |
- name: Compile "rats-tls" occlum mode | |
run: | |
source /root/.bashrc && cmake -DRATS_TLS_BUILD_MODE="occlum" -DBUILD_SAMPLES=on -H. -Bbuild && make -C build install && make -C build clean && rm -rf build | |
env: | |
HOME: /root | |
- name: Compile "rats-tls" sgx mode | |
run: | |
source /root/.bashrc && cmake -DRATS_TLS_BUILD_MODE="sgx" -DBUILD_SAMPLES=on -H. -Bbuild && make -C build install && make -C build clean && rm -rf build | |
env: | |
HOME: /root | |
- name: Compile "rats-tls" tdx mode | |
run: | |
source /root/.bashrc && cmake -DRATS_TLS_BUILD_MODE="tdx" -DBUILD_SAMPLES=on -H. -Bbuild && make -C build install && make -C build clean && rm -rf build | |
env: | |
HOME: /root |