Skip to content

SALM-572 Update converter API to include CCM/DSM configs #125

SALM-572 Update converter API to include CCM/DSM configs

SALM-572 Update converter API to include CCM/DSM configs #125

Workflow file for this run

name: Build Solution
on:
workflow_call:
secrets:
AWS_ACCESS_KEY_ID:
required: true
AWS_SECRET_ACCESS_KEY:
required: true
EC2_PRIVATE_SSH_KEY:
required: true
FORTANIX_API_KEY:
required: true
OVERLAYFS_UNIT_TEST_API_KEY:
required: true
PAT:
required: true
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Pull main repository
uses: actions/checkout@v3
with:
repository: fortanix/salmiac
- name: Pull submodules
uses: actions/checkout@v3
with:
repository: fortanix/app-test-infra-test
token: ${{ secrets.PAT }}
path: tools/app-test-infra
- name: Configure AWS credentials
run: |
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }}
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws configure set region us-west-1
- name: Login into ECR
uses: aws-actions/[email protected]
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
targets: x86_64-unknown-linux-musl
toolchain: nightly
- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.EC2_PRIVATE_SSH_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y libpcap-dev amazon-ecr-credential-helper
- name: Build Rust code
run: |
./build-converter.sh
- name: Run Rust unit tests
env:
FORTANIX_API_KEY: ${{ secrets.FORTANIX_API_KEY }}
OVERLAYFS_UNIT_TEST_API_KEY: ${{ secrets.OVERLAYFS_UNIT_TEST_API_KEY }}
run: |
./unit-test-solution.sh
# Will be uncommented in RTE-188
# - name: Build application tests container
# run: |
# ./build-app-tests-container.sh
# - name: Run application tests container
# env:
# FORTANIX_API_KEY: ${{ secrets.FORTANIX_API_KEY }}
# OVERLAYFS_UNIT_TEST_API_KEY: ${{ secrets.OVERLAYFS_UNIT_TEST_API_KEY }}
# run: |
# ./run-application-tests.sh ${{ env.TESTS_CONTAINER_ECR }} ${{ env.FORTANIX_API_KEY }}