From 52be3f93f7428e19d184380b8a3bdc005d459525 Mon Sep 17 00:00:00 2001 From: pwnwriter Date: Sun, 26 May 2024 14:38:33 +0545 Subject: [PATCH] chore(ci): pausing all gh actions --- .github/dependabot.yml | 16 +-- .github/workflows/build-app.yml | 68 ++++++------ .github/workflows/release.yml | 186 ++++++++++++++++---------------- .github/workflows/test-args.yml | 98 ++++++++--------- 4 files changed, 184 insertions(+), 184 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3a7b6ae..92c361c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,8 +1,8 @@ -version: 2 -updates: - # Maintain dependencies for Cargo - - package-ecosystem: cargo - directory: "/" - schedule: - interval: daily - open-pull-requests-limit: 10 +# version: 2 +# updates: +# # Maintain dependencies for Cargo +# - package-ecosystem: cargo +# directory: "/" +# schedule: +# interval: daily +# open-pull-requests-limit: 10 diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index 063491b..dcce1ca 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -1,34 +1,34 @@ -name: build hysp on matrix - -on: - push: - branches: - - main - pull_request: - branches: - - main - -env: - CARGO_TERM_COLOR: always - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - toolchain: - - stable - - beta - - nightly - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Rust - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - - - name: Build - run: | - cargo build --verbose - +# name: build hysp on matrix +# +# on: +# push: +# branches: +# - main +# pull_request: +# branches: +# - main +# +# env: +# CARGO_TERM_COLOR: always +# +# jobs: +# build: +# runs-on: ubuntu-latest +# strategy: +# matrix: +# toolchain: +# - stable +# - beta +# - nightly +# +# steps: +# - name: Checkout code +# uses: actions/checkout@v2 +# +# - name: Set up Rust +# run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} +# +# - name: Build +# run: | +# cargo build --verbose +# diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 766705c..feb0568 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,93 +1,93 @@ -name: Continuous Deployment - -on: - push: - tags: - - "v*.*.*" - -jobs: - publish-github: - name: Publish on GitHub - runs-on: ${{ matrix.config.OS }} - strategy: - fail-fast: false - matrix: - config: - - { OS: ubuntu-latest, TARGET: "x86_64-unknown-linux-gnu" } - - { OS: ubuntu-latest, TARGET: "x86_64-unknown-linux-musl" } - - { OS: ubuntu-latest, TARGET: "i686-unknown-linux-gnu" } - - { OS: ubuntu-latest, TARGET: "i686-unknown-linux-musl" } - - { OS: ubuntu-latest, TARGET: "armv5te-unknown-linux-gnueabi" } - - { OS: ubuntu-latest, TARGET: "armv7-unknown-linux-gnueabihf" } - - { OS: ubuntu-latest, TARGET: "aarch64-unknown-linux-gnu" } - - { OS: ubuntu-latest, TARGET: "aarch64-unknown-linux-musl" } - - { OS: macos-latest, TARGET: "x86_64-apple-darwin" } - - { OS: macos-latest, TARGET: "aarch64-apple-darwin" } - # - { OS: windows-latest, TARGET: "x86_64-pc-windows-msvc" } - # - { OS: windows-latest, TARGET: "i686-pc-windows-msvc" } - - steps: - - name: Checkout the repository - uses: actions/checkout@v3 - - - name: Set the release version - shell: bash - run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV - - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: ${{ matrix.config.TARGET }} - override: true - - - name: Build - uses: actions-rs/cargo@v1 - with: - use-cross: true - command: build - args: --release --locked --target ${{ matrix.config.TARGET }} - - - name: Prepare release assets - shell: bash - run: | - mkdir release/ - cp {LICENSE,README.md} release/ - cp target/${{ matrix.config.TARGET }}/release/hysp release/ - mv release/ hysp-${{ env.RELEASE_VERSION }}/ - - - name: Create release artifacts - shell: bash - run: | - if [ "${{ matrix.config.OS }}" = "windows-latest" ]; then - 7z a -tzip "hysp-${{ env.RELEASE_VERSION }}-${{ matrix.config.TARGET }}.zip" \ - hysp-${{ env.RELEASE_VERSION }} - else - tar -czvf hysp-${{ env.RELEASE_VERSION }}-${{ matrix.config.TARGET }}.tar.gz \ - hysp-${{ env.RELEASE_VERSION }}/ - shasum -a 512 hysp-${{ env.RELEASE_VERSION }}-${{ matrix.config.TARGET }}.tar.gz \ - > hysp-${{ env.RELEASE_VERSION }}-${{ matrix.config.TARGET }}.tar.gz.sha512 - fi - - - name: Upload the release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: hysp-${{ env.RELEASE_VERSION }}-${{ matrix.config.TARGET }}.* - file_glob: true - overwrite: true - tag: ${{ github.ref }} - - publish-crates-io: - name: Publish on crates.io - needs: publish-github - runs-on: ubuntu-latest - steps: - - name: Checkout the repository - uses: actions/checkout@v3 - - - name: Publish - uses: actions-rs/cargo@v1 - with: - command: publish - args: --locked --token ${{ secrets.CARGO_TOKEN }} +# name: Continuous Deployment +# +# on: +# push: +# tags: +# - "v*.*.*" +# +# jobs: +# publish-github: +# name: Publish on GitHub +# runs-on: ${{ matrix.config.OS }} +# strategy: +# fail-fast: false +# matrix: +# config: +# - { OS: ubuntu-latest, TARGET: "x86_64-unknown-linux-gnu" } +# - { OS: ubuntu-latest, TARGET: "x86_64-unknown-linux-musl" } +# - { OS: ubuntu-latest, TARGET: "i686-unknown-linux-gnu" } +# - { OS: ubuntu-latest, TARGET: "i686-unknown-linux-musl" } +# - { OS: ubuntu-latest, TARGET: "armv5te-unknown-linux-gnueabi" } +# - { OS: ubuntu-latest, TARGET: "armv7-unknown-linux-gnueabihf" } +# - { OS: ubuntu-latest, TARGET: "aarch64-unknown-linux-gnu" } +# - { OS: ubuntu-latest, TARGET: "aarch64-unknown-linux-musl" } +# - { OS: macos-latest, TARGET: "x86_64-apple-darwin" } +# - { OS: macos-latest, TARGET: "aarch64-apple-darwin" } +# # - { OS: windows-latest, TARGET: "x86_64-pc-windows-msvc" } +# # - { OS: windows-latest, TARGET: "i686-pc-windows-msvc" } +# +# steps: +# - name: Checkout the repository +# uses: actions/checkout@v3 +# +# - name: Set the release version +# shell: bash +# run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV +# +# - name: Install Rust +# uses: actions-rs/toolchain@v1 +# with: +# toolchain: stable +# target: ${{ matrix.config.TARGET }} +# override: true +# +# - name: Build +# uses: actions-rs/cargo@v1 +# with: +# use-cross: true +# command: build +# args: --release --locked --target ${{ matrix.config.TARGET }} +# +# - name: Prepare release assets +# shell: bash +# run: | +# mkdir release/ +# cp {LICENSE,README.md} release/ +# cp target/${{ matrix.config.TARGET }}/release/hysp release/ +# mv release/ hysp-${{ env.RELEASE_VERSION }}/ +# +# - name: Create release artifacts +# shell: bash +# run: | +# if [ "${{ matrix.config.OS }}" = "windows-latest" ]; then +# 7z a -tzip "hysp-${{ env.RELEASE_VERSION }}-${{ matrix.config.TARGET }}.zip" \ +# hysp-${{ env.RELEASE_VERSION }} +# else +# tar -czvf hysp-${{ env.RELEASE_VERSION }}-${{ matrix.config.TARGET }}.tar.gz \ +# hysp-${{ env.RELEASE_VERSION }}/ +# shasum -a 512 hysp-${{ env.RELEASE_VERSION }}-${{ matrix.config.TARGET }}.tar.gz \ +# > hysp-${{ env.RELEASE_VERSION }}-${{ matrix.config.TARGET }}.tar.gz.sha512 +# fi +# +# - name: Upload the release +# uses: svenstaro/upload-release-action@v2 +# with: +# repo_token: ${{ secrets.GITHUB_TOKEN }} +# file: hysp-${{ env.RELEASE_VERSION }}-${{ matrix.config.TARGET }}.* +# file_glob: true +# overwrite: true +# tag: ${{ github.ref }} +# +# publish-crates-io: +# name: Publish on crates.io +# needs: publish-github +# runs-on: ubuntu-latest +# steps: +# - name: Checkout the repository +# uses: actions/checkout@v3 +# +# - name: Publish +# uses: actions-rs/cargo@v1 +# with: +# command: publish +# args: --locked --token ${{ secrets.CARGO_TOKEN }} diff --git a/.github/workflows/test-args.yml b/.github/workflows/test-args.yml index a516c45..05d8832 100644 --- a/.github/workflows/test-args.yml +++ b/.github/workflows/test-args.yml @@ -1,49 +1,49 @@ -name: Test hysp commands // args - -on: - push: - branches: - - main - pull_request: - branches: - - main - -env: - CARGO_TERM_COLOR: always - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - toolchain: - - stable - # - beta - # - nightly - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Rust - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - - - name: build and install hysp - run: | - cargo build --release --locked - mv $(find -type f -name hysp) /usr/local/bin && echo "Moved hysp" - if ! command -v hysp &> /dev/null; then - echo "hysp is not installed properly." - exit 1 - fi - - - name: Check hysp install arg - run: | - hysp install -p nuclei - hysp health - - - - name: Check hysp uninstall arg - run: | - hysp remove -p nuclei --force - hysp health +# name: Test hysp commands // args +# +# on: +# push: +# branches: +# - main +# pull_request: +# branches: +# - main +# +# env: +# CARGO_TERM_COLOR: always +# +# jobs: +# build: +# runs-on: ubuntu-latest +# strategy: +# matrix: +# toolchain: +# - stable +# # - beta +# # - nightly +# +# steps: +# - name: Checkout code +# uses: actions/checkout@v2 +# +# - name: Set up Rust +# run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} +# +# - name: build and install hysp +# run: | +# cargo build --release --locked +# mv $(find -type f -name hysp) /usr/local/bin && echo "Moved hysp" +# if ! command -v hysp &> /dev/null; then +# echo "hysp is not installed properly." +# exit 1 +# fi +# +# - name: Check hysp install arg +# run: | +# hysp install -p nuclei +# hysp health +# +# +# - name: Check hysp uninstall arg +# run: | +# hysp remove -p nuclei --force +# hysp health