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

Optimize main workflow in ci #32

Merged
merged 1 commit into from
Aug 16, 2023
Merged
Changes from all commits
Commits
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
53 changes: 3 additions & 50 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
build_migtd:
name: Build final migtd
runs-on: ubuntu-20.04
timeout-minutes: 30
timeout-minutes: 45

steps:
# Install first since it's needed to build NASM
Expand Down Expand Up @@ -60,54 +60,7 @@ jobs:
run: bash sh_script/build_final.sh -t migtd -c -a on

- name: Build Migtd Final Binary Using Vmcall-Vsock
run: bash sh_script/build_final.sh -t migtd -d vmcall -c
run: bash sh_script/build_final.sh -t migtd -d vmcall -c -a on

- name: Build Migtd Final Binary Using virtio-serial
run: bash sh_script/build_final.sh -t migtd -d serial -c

build_migtd_features:
name: Build final migtd (vmcall-vsock/virtio-serial)
runs-on: ubuntu-20.04
timeout-minutes: 30

steps:
# Install first since it's needed to build NASM
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "10.0"
directory: ${{ runner.temp }}/llvm

- name: Install NASM
uses: ilammy/setup-nasm@v1

- name: Install tools for sgx lib
run: sudo apt-get install build-essential ocaml ocamlbuild automake autoconf libtool wget python-is-python3 libssl-dev git cmake perl

- name: Checkout sources
uses: actions/checkout@v2
with:
submodules: recursive

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: ${{ env.TOOLCHAIN_PROFILE }}
toolchain: ${{ env.RUST_TOOLCHAIN }}
override: true
components: rust-src

- name: Run cargo install cargo-xbuild
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-xbuild

- name: Preparation Work
run: bash sh_script/preparation.sh

- name: Build Migtd Final Binary Using Vmcall-Vsock
run: bash sh_script/build_final.sh -t migtd -d vmcall -c

- name: Build Migtd Final Binary Using virtio-serial
run: bash sh_script/build_final.sh -t migtd -d serial -c
run: bash sh_script/build_final.sh -t migtd -d serial -c -a on
Loading