Skip to content
Merged
Show file tree
Hide file tree
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
26 changes: 6 additions & 20 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ on:
description: "Build Binary"
required: false
type: boolean
features:
default: ''
description: "Additional binary compilation features (azure is always enabled)"
options:
- ''
- 'redact-sensitive'
required: false
type: choice

jobs:
extract-version:
Expand Down Expand Up @@ -56,7 +48,6 @@ jobs:
echo "| \`GITHUB_REF\` | \`${GITHUB_REF}\` |" >> $GITHUB_STEP_SUMMARY
echo "| \`GITHUB_SHA\` | \`${GITHUB_SHA}\` |" >> $GITHUB_STEP_SUMMARY
echo "| \`VERSION\` | \`${VERSION}\` |" >> $GITHUB_STEP_SUMMARY
echo "| \`FEATURES\` | \`${{ format('azure{0}', github.event.inputs.features && format(' {0}', github.event.inputs.features) || '') }}\` |" >> $GITHUB_STEP_SUMMARY

build-binary:
name: Build binary
Expand All @@ -72,8 +63,6 @@ jobs:
- target: x86_64-unknown-linux-gnu
runner: warp-ubuntu-latest-x64-32x
profile: reproducible
features:
- ${{ format('azure{0}', github.event.inputs.features && format(' {0}', github.event.inputs.features) || '') }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -101,7 +90,6 @@ jobs:
docker build \
--build-arg "RUST_TOOLCHAIN=${RUST_TOOLCHAIN}" \
--build-arg "RUST_IMAGE=${RUST_IMAGE}" \
--build-arg "FEATURES=${{ matrix.features }}" \
--build-arg "VERSION=${{ needs.extract-version.outputs.VERSION }}" \
--build-arg "SOURCE_DATE=${SOURCE_DATE}" \
-f Dockerfile.build-deb -t atp:release \
Expand All @@ -110,32 +98,30 @@ jobs:
- name: Upload attested-tls-proxy artifact
uses: actions/upload-artifact@v4
with:
name: attested-tls-proxy-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}${{ matrix.features && '-' }}${{ matrix.features }}
name: attested-tls-proxy-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}
path: target/${{ matrix.configs.profile }}/attested-tls-proxy

- name: Upload attestation-provider-server artifact
uses: actions/upload-artifact@v4
with:
name: attestation-provider-server-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}${{ matrix.features && '-' }}${{ matrix.features }}
name: attestation-provider-server-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}
path: target/${{ matrix.configs.profile }}/attestation-provider-server
if-no-files-found: error

- name: Upload combined Debian package
uses: actions/upload-artifact@v4
with:
name: deb-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}${{ matrix.features && '-' }}${{ matrix.features }}
name: deb-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}
path: target/debian/attested-tls-proxy_*.deb
if-no-files-found: error


draft-release:
name: Draft release
if: ${{ github.event.inputs.draft-release == 'true' || github.event_name == 'push'}} # when manually triggered or version tagged
needs: [extract-version, build-binary]
runs-on: ubuntu-latest
env:
VERSION: ${{ needs.extract-version.outputs.VERSION }}
BUILD_FEATURES: ${{ format('azure{0}', github.event.inputs.features && format(' {0}', github.event.inputs.features) || '') }}
permissions:
contents: write
steps:
Expand All @@ -145,19 +131,19 @@ jobs:
- name: Download attested-tls-proxy artifact
uses: actions/download-artifact@v5
with:
name: attested-tls-proxy-${{ env.VERSION }}-x86_64-unknown-linux-gnu-${{ env.BUILD_FEATURES }}
name: attested-tls-proxy-${{ env.VERSION }}-x86_64-unknown-linux-gnu
path: artifacts

- name: Download combined Debian package artifact
uses: actions/download-artifact@v5
with:
name: deb-${{ env.VERSION }}-x86_64-unknown-linux-gnu-${{ env.BUILD_FEATURES }}
name: deb-${{ env.VERSION }}-x86_64-unknown-linux-gnu
path: artifacts

- name: Download attestation-provider-server artifact
uses: actions/download-artifact@v5
with:
name: attestation-provider-server-${{ env.VERSION }}-x86_64-unknown-linux-gnu-${{ env.BUILD_FEATURES }}
name: attestation-provider-server-${{ env.VERSION }}-x86_64-unknown-linux-gnu
path: artifacts

- name: Record artifacts checksums
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libtss2-dev
sudo apt-get install -y pkg-config

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -39,7 +39,7 @@ jobs:
run: cargo check -p attested-tls --locked

- name: Run cargo clippy
run: cargo clippy --workspace --features azure,attested-tls/ws,attested-tls/rpc -- -D warnings
run: cargo clippy --workspace --features attested-tls/ws,attested-tls/rpc --locked -- -D warnings

- name: Run cargo test
run: cargo test --workspace --features azure,attested-tls/ws,attested-tls/rpc --all-targets -- --test-threads=1
run: cargo test --workspace --features attested-tls/ws,attested-tls/rpc --all-targets --locked -- --test-threads=1
Loading
Loading