From ac6673bbb6b52b306e49d9a1b18c9830c684af33 Mon Sep 17 00:00:00 2001 From: gabriel-aranha-cw Date: Fri, 29 Nov 2024 14:24:23 -0300 Subject: [PATCH] fix --- .github/workflows/backup.yml | 80 ------------------------------ .github/workflows/build-binary.yml | 8 +-- 2 files changed, 4 insertions(+), 84 deletions(-) delete mode 100644 .github/workflows/backup.yml diff --git a/.github/workflows/backup.yml b/.github/workflows/backup.yml deleted file mode 100644 index 11b844426..000000000 --- a/.github/workflows/backup.yml +++ /dev/null @@ -1,80 +0,0 @@ -name: Build Binary - -on: - workflow_dispatch: - inputs: - features: - description: "List of features to enable" - required: false - default: "" - push: - branches: - - "main" - paths: - - "src/**" - - "Cargo.toml" - - "Cargo.lock" - - "rust-toolchain.toml" - - "tests/fixtures/**" - - "static/**" - - ".sqlx/**" - -env: - RETENTION_DAYS: 90 - -jobs: - build_binaries: - name: Build and upload - runs-on: ubuntu-latest - timeout-minutes: 45 - - concurrency: - group: ${{ github.workflow }}-{{ github.run_id }} - cancel-in-progress: true - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Rust - run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.81 - - - name: Rust Cache - uses: Swatinem/rust-cache@v2 - id: cache-cargo - with: - prefix-key: ${{ runner.os }}-v3-cargo - shared-key: artifact - cache-provider: "github" - save-if: ${{ github.ref_name == 'main' && github.event_name == 'push' }} - - - name: Install protoc - run: sudo apt-get install -y protobuf-compiler - - - 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 binaries - run: | - cargo build --release \ - --bin stratus \ - --features "$FEATURES" - env: - CARGO_PROFILE_RELEASE_DEBUG: 1 - TRACING_LOG_FORMAT: json - NO_COLOR: 1 - FEATURES: "${{ github.event.inputs.features || 'default' }}" - - - name: Upload stratus - uses: actions/upload-artifact@v4 - id: upload-str - with: - 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-str.outputs.artifact-id }} (stratus)" - echo "Artifact URL: ${{ steps.upload-str.outputs.artifact-url }} (stratus)" \ No newline at end of file diff --git a/.github/workflows/build-binary.yml b/.github/workflows/build-binary.yml index efd952104..a13e39706 100644 --- a/.github/workflows/build-binary.yml +++ b/.github/workflows/build-binary.yml @@ -36,10 +36,10 @@ jobs: artifact_prefix: stratus extra_features: "" rustflags: "" - #- name: profiling - # artifact_prefix: stratus-prof - # extra_features: ",jeprof" - # rustflags: "-C force-frame-pointers=yes" + - 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 }}