Skip to content
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
44 changes: 28 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,29 +59,41 @@ jobs:
echo "OPENSSL_DIR=C:\msys64\mingw64" >> $env:GITHUB_ENV
echo "OPENSSL_ROOT_DIR=C:\msys64\mingw64" >> $env:GITHUB_ENV
echo "CARGO_TARGET_DIR=C:\t" >> $env:GITHUB_ENV
- name: Debian 11 amd64 build

- name: Debian 11 amd64 Build
if: matrix.platform.name == 'linux-amd64'
env:
GCP_JSON: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
run: |
docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace/post-quantum-client-testing debian:11 bash -c "
apt-get update &&
apt-get install -y curl build-essential pkg-config libclang-dev cmake libssl-dev &&
curl https://sh.rustup.rs -sSf | sh -s -- -y &&
source /root/.cargo/env &&
rustup target add x86_64-unknown-linux-gnu &&
cargo build --release --target x86_64-unknown-linux-gnu
docker run --rm \
-e SERVICE_ACCOUNT_JSON="$GCP_JSON" \
-v ${{ github.workspace }}:/workspace \
-w /workspace/post-quantum-client-testing \
debian:11 bash -c "
apt-get update &&
apt-get install -y curl build-essential pkg-config libclang-dev cmake libssl-dev &&
curl https://sh.rustup.rs -sSf | sh -s -- -y &&
source /root/.cargo/env &&
rustup target add x86_64-unknown-linux-gnu &&
cargo build --release --target x86_64-unknown-linux-gnu
"

- name: Debian 11 arm64 Build
if: matrix.platform.name == 'linux-arm64'
env:
GCP_JSON: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
run: |
docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace/post-quantum-client-testing debian:11 bash -c "
apt-get update &&
apt-get install -y curl build-essential pkg-config libclang-dev cmake libssl-dev &&
curl https://sh.rustup.rs -sSf | sh -s -- -y &&
source /root/.cargo/env &&
rustup target add aarch64-unknown-linux-gnu &&
cargo build --release --target aarch64-unknown-linux-gnu
docker run --rm \
-e SERVICE_ACCOUNT_JSON="$GCP_JSON" \
-v ${{ github.workspace }}:/workspace \
-w /workspace/post-quantum-client-testing \
debian:11 bash -c "
apt-get update &&
apt-get install -y curl build-essential pkg-config libclang-dev cmake libssl-dev &&
curl https://sh.rustup.rs -sSf | sh -s -- -y &&
source /root/.cargo/env &&
rustup target add aarch64-unknown-linux-gnu &&
cargo build --release --target aarch64-unknown-linux-gnu
"

- name: Build the binary
Expand Down
Loading