From baf7d1be4e9a7e70de99c6005b09571bd17ff6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Sun, 5 Jan 2020 22:46:34 +0100 Subject: [PATCH] Delete old workflow file and disable building binaries on pull requests, as we already have CI for that --- .github/workflows/rust-win.yml.disabled | 70 ------------------------- .github/workflows/workspace.yml | 6 +-- 2 files changed, 3 insertions(+), 73 deletions(-) delete mode 100644 .github/workflows/rust-win.yml.disabled diff --git a/.github/workflows/rust-win.yml.disabled b/.github/workflows/rust-win.yml.disabled deleted file mode 100644 index 23bc8bc..0000000 --- a/.github/workflows/rust-win.yml.disabled +++ /dev/null @@ -1,70 +0,0 @@ -name: build-windows - -on: [push, pull_request] - -jobs: - build: - - runs-on: windows-latest - - strategy: - matrix: - db-backend: [sqlite, mysql, postgresql] - - steps: - - uses: actions/checkout@v1 - - - name: Cache choco cache - uses: actions/cache@v1.0.3 - with: - path: ~\AppData\Local\Temp\chocolatey - key: ${{ runner.os }}-choco-cache - - - name: Install dependencies - run: choco install openssl sqlite postgresql12 mysql - - - name: Cache cargo registry - uses: actions/cache@v1.0.3 - with: - path: ~/.cargo/registry - key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo index - uses: actions/cache@v1.0.3 - with: - path: ~/.cargo/git - key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo build - uses: actions/cache@v1.0.3 - with: - path: target - key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} - - - name: Install latest nightly - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - profile: minimal - target: x86_64-pc-windows-msvc - - - name: Build - run: cargo.exe build --verbose --features ${{ matrix.db-backend }} --release --target x86_64-pc-windows-msvc - env: - OPENSSL_DIR: C:\Program Files\OpenSSL-Win64\ - - - name: Run tests - run: cargo test --features ${{ matrix.db-backend }} - - - name: Upload windows artifact - uses: actions/upload-artifact@v1.0.0 - with: - name: x86_64-pc-windows-msvc-${{ matrix.db-backend }}-bitwarden_rs - path: target/release/bitwarden_rs.exe - - - name: Release - uses: Shopify/upload-to-release@1.0.0 - if: startsWith(github.ref, 'refs/tags/') - with: - name: x86_64-pc-windows-msvc-${{ matrix.db-backend }}-bitwarden_rs - path: target/release/bitwarden_rs.exe - repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml index 222b66c..95cdb6c 100644 --- a/.github/workflows/workspace.yml +++ b/.github/workflows/workspace.yml @@ -4,9 +4,9 @@ on: push: paths-ignore: - "**.md" - pull_request: - paths-ignore: - - "**.md" + #pull_request: + # paths-ignore: + # - "**.md" jobs: build: