From 88c7914f9654c2060dcb02decd28713e22c8b62f Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Tue, 4 Jun 2024 14:05:05 +0530 Subject: [PATCH] chore: rm GH actions --- .github/workflows/clippy-fmt.yml | 43 -------------------- .github/workflows/coverage.yml | 49 ---------------------- .github/workflows/linux.yml | 70 -------------------------------- 3 files changed, 162 deletions(-) delete mode 100644 .github/workflows/clippy-fmt.yml delete mode 100644 .github/workflows/coverage.yml delete mode 100644 .github/workflows/linux.yml diff --git a/.github/workflows/clippy-fmt.yml b/.github/workflows/clippy-fmt.yml deleted file mode 100644 index 325e539..0000000 --- a/.github/workflows/clippy-fmt.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Lint - -on: - pull_request: - types: [opened, synchronize, reopened] - push: - branches: - - master - -jobs: - fmt: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - components: rustfmt - - name: Check with rustfmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - clippy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - components: clippy - override: true - - - name: Check with Clippy - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --workspace --tests --all-features diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml deleted file mode 100644 index 3146d1a..0000000 --- a/.github/workflows/coverage.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Coverage - -on: - pull_request: - types: [opened, synchronize, reopened] - push: - branches: - - master - -jobs: - build_and_test: - strategy: - fail-fast: false - matrix: - version: - - nightly - - name: ${{ matrix.version }} - x86_64-unknown-linux-gnu - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: ⚡ Cache - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - - name: Install ${{ matrix.version }} - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.version }}-x86_64-unknown-linux-gnu - profile: minimal - override: true - - - name: Generate coverage file - if: (github.ref == 'refs/heads/master' || github.event_name == 'pull_request') - uses: actions-rs/tarpaulin@v0.1 - with: - args: "-t 1200" - env: - GIT_HASH: 8e77345f1597e40c2e266cb4e6dee74888918a61 - - - name: Upload to Codecov - uses: codecov/codecov-action@v2 - if: github.ref == 'refs/heads/master' diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml deleted file mode 100644 index d39bd0d..0000000 --- a/.github/workflows/linux.yml +++ /dev/null @@ -1,70 +0,0 @@ -name: Build - -on: - pull_request: - types: [opened, synchronize, reopened] - push: - branches: - - master - -jobs: - build_and_test: - strategy: - fail-fast: false - matrix: - version: - #- 1.51.0 - - stable - # - nightly - - name: ${{ matrix.version }} - x86_64-unknown-linux-gnu - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: ⚡ Cache - uses: actions/cache@v2 - with: - path: | - /var/lib/docker - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - - name: Login to DockerHub - if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'realaravinth/libmedium' - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Install ${{ matrix.version }} - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.version }}-x86_64-unknown-linux-gnu - profile: minimal - override: true - - - name: build - run: make - - - name: run tests - run: make test - - - name: build and publish docker images - run: make docker-publish - - - name: generate documentation - if: matrix.version == 'stable' && (github.repository == 'realaravinth/libmedium') - run: make doc - env: - GIT_HASH: 8e77345f1597e40c2e266cb4e6dee74888918a61 # dummy value - - - name: Deploy to GitHub libmedium - if: matrix.version == 'stable' && (github.repository == 'realaravinth/libmedium') - uses: JamesIves/github-pages-deploy-action@3.7.1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH: gh-libmedium - FOLDER: target/doc