From f79b3b36ff4a16127546ab49bab2ed8f06baa352 Mon Sep 17 00:00:00 2001 From: gabriel-aranha-cw Date: Fri, 29 Nov 2024 13:45:02 -0300 Subject: [PATCH] revert --- .github/workflows/build-binary.yml | 32 +++++++++--------------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build-binary.yml b/.github/workflows/build-binary.yml index e148a0df5..11b844426 100644 --- a/.github/workflows/build-binary.yml +++ b/.github/workflows/build-binary.yml @@ -24,25 +24,12 @@ env: jobs: build_binaries: - name: Build ${{ matrix.config.name }} binary + name: Build and upload runs-on: ubuntu-latest timeout-minutes: 45 - strategy: - fail-fast: false - matrix: - config: - - name: default - artifact_prefix: stratus - extra_features: "" - rustflags: "" - - name: profiling - artifact_prefix: stratus-prof - extra_features: ",jeprof" - rustflags: "-C force-frame-pointers=yes" - concurrency: - group: ${{ github.workflow }}-${{ matrix.config.name }}-${{ github.run_id }} + group: ${{ github.workflow }}-{{ github.run_id }} cancel-in-progress: true steps: @@ -67,28 +54,27 @@ jobs: - name: Install libsasl2-dev libssl-dev run: sudo apt-get update && sudo apt install -y build-essential pkg-config libssl-dev libsasl2-dev - - name: Build binary + - name: Build binaries run: | cargo build --release \ --bin stratus \ - --features "${{ env.FEATURES }}${{ matrix.config.extra_features }}" + --features "$FEATURES" env: CARGO_PROFILE_RELEASE_DEBUG: 1 TRACING_LOG_FORMAT: json NO_COLOR: 1 FEATURES: "${{ github.event.inputs.features || 'default' }}" - RUSTFLAGS: ${{ matrix.config.rustflags }} - - name: Upload binary + - name: Upload stratus uses: actions/upload-artifact@v4 - id: upload-binary + id: upload-str with: - name: ${{ matrix.config.artifact_prefix }}-${{ github.sha }} + name: stratus-${{ github.sha }} path: target/release/stratus if-no-files-found: error retention-days: ${{ env.RETENTION_DAYS }} - name: Print outputs run: | - echo "Artifact ID: ${{ steps.upload-binary.outputs.artifact-id }} (${{ matrix.config.name }})" - echo "Artifact URL: ${{ steps.upload-binary.outputs.artifact-url }} (${{ matrix.config.name }})" \ No newline at end of file + echo "Artifact ID: ${{ steps.upload-str.outputs.artifact-id }} (stratus)" + echo "Artifact URL: ${{ steps.upload-str.outputs.artifact-url }} (stratus)" \ No newline at end of file