mirror of
https://github.com/epi052/feroxbuster.git
synced 2026-06-05 08:11:13 -03:00
initial stab at updated statuscode behavior
This commit is contained in:
194
.github/workflows/build.yml
vendored
194
.github/workflows/build.yml
vendored
@@ -7,7 +7,7 @@ jobs:
|
||||
env:
|
||||
IN_PIPELINE: true
|
||||
runs-on: ${{ matrix.os }}
|
||||
if: github.ref == 'refs/heads/main'
|
||||
# if: github.ref == 'refs/heads/main'
|
||||
strategy:
|
||||
matrix:
|
||||
type: [ubuntu-x64, ubuntu-x86, armv7, aarch64]
|
||||
@@ -18,24 +18,24 @@ jobs:
|
||||
name: x86_64-linux-feroxbuster
|
||||
path: target/x86_64-unknown-linux-musl/release/feroxbuster
|
||||
pkg_config_path: /usr/lib/x86_64-linux-gnu/pkgconfig
|
||||
- type: ubuntu-x86
|
||||
os: ubuntu-latest
|
||||
target: i686-unknown-linux-musl
|
||||
name: x86-linux-feroxbuster
|
||||
path: target/i686-unknown-linux-musl/release/feroxbuster
|
||||
pkg_config_path: /usr/lib/i686-linux-gnu/pkgconfig
|
||||
- type: armv7
|
||||
os: ubuntu-latest
|
||||
target: armv7-unknown-linux-gnueabihf
|
||||
name: armv7-feroxbuster
|
||||
path: target/armv7-unknown-linux-gnueabihf/release/feroxbuster
|
||||
pkg_config_path: /usr/lib/x86_64-linux-gnu/pkgconfig
|
||||
- type: aarch64
|
||||
os: ubuntu-latest
|
||||
target: aarch64-unknown-linux-gnu
|
||||
name: aarch64-feroxbuster
|
||||
path: target/aarch64-unknown-linux-gnu/release/feroxbuster
|
||||
pkg_config_path: /usr/lib/x86_64-linux-gnu/pkgconfig
|
||||
# - type: ubuntu-x86
|
||||
# os: ubuntu-latest
|
||||
# target: i686-unknown-linux-musl
|
||||
# name: x86-linux-feroxbuster
|
||||
# path: target/i686-unknown-linux-musl/release/feroxbuster
|
||||
# pkg_config_path: /usr/lib/i686-linux-gnu/pkgconfig
|
||||
# - type: armv7
|
||||
# os: ubuntu-latest
|
||||
# target: armv7-unknown-linux-gnueabihf
|
||||
# name: armv7-feroxbuster
|
||||
# path: target/armv7-unknown-linux-gnueabihf/release/feroxbuster
|
||||
# pkg_config_path: /usr/lib/x86_64-linux-gnu/pkgconfig
|
||||
# - type: aarch64
|
||||
# os: ubuntu-latest
|
||||
# target: aarch64-unknown-linux-gnu
|
||||
# name: aarch64-feroxbuster
|
||||
# path: target/aarch64-unknown-linux-gnu/release/feroxbuster
|
||||
# pkg_config_path: /usr/lib/x86_64-linux-gnu/pkgconfig
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install System Dependencies
|
||||
@@ -73,83 +73,83 @@ jobs:
|
||||
name: ${{ matrix.name }}.tar.gz
|
||||
path: ${{ matrix.name }}.tar.gz
|
||||
|
||||
build-deb:
|
||||
needs: [build-nix]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Deb Build
|
||||
uses: ebbflow-io/cargo-deb-amd64-ubuntu@1.0
|
||||
- name: Upload Deb Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: feroxbuster_amd64.deb
|
||||
path: ./target/x86_64-unknown-linux-musl/debian/*
|
||||
# build-deb:
|
||||
# needs: [build-nix]
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@master
|
||||
# - name: Deb Build
|
||||
# uses: ebbflow-io/cargo-deb-amd64-ubuntu@1.0
|
||||
# - name: Upload Deb Artifact
|
||||
# uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: feroxbuster_amd64.deb
|
||||
# path: ./target/x86_64-unknown-linux-musl/debian/*
|
||||
|
||||
build-macos:
|
||||
env:
|
||||
IN_PIPELINE: true
|
||||
runs-on: macos-latest
|
||||
if: github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
target: x86_64-apple-darwin
|
||||
override: true
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
use-cross: true
|
||||
command: build
|
||||
args: --release --target=x86_64-apple-darwin
|
||||
- name: Strip symbols from binary
|
||||
run: |
|
||||
strip -u -r target/x86_64-apple-darwin/release/feroxbuster
|
||||
- name: Build tar.gz for homebrew installs
|
||||
run: |
|
||||
tar czf x86_64-macos-feroxbuster.tar.gz -C target/x86_64-apple-darwin/release feroxbuster
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: x86_64-macos-feroxbuster
|
||||
path: target/x86_64-apple-darwin/release/feroxbuster
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: x86_64-macos-feroxbuster.tar.gz
|
||||
path: x86_64-macos-feroxbuster.tar.gz
|
||||
# build-macos:
|
||||
# env:
|
||||
# IN_PIPELINE: true
|
||||
# runs-on: macos-latest
|
||||
# if: github.ref == 'refs/heads/main'
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - uses: actions-rs/toolchain@v1
|
||||
# with:
|
||||
# toolchain: stable
|
||||
# target: x86_64-apple-darwin
|
||||
# override: true
|
||||
# - uses: actions-rs/cargo@v1
|
||||
# with:
|
||||
# use-cross: true
|
||||
# command: build
|
||||
# args: --release --target=x86_64-apple-darwin
|
||||
# - name: Strip symbols from binary
|
||||
# run: |
|
||||
# strip -u -r target/x86_64-apple-darwin/release/feroxbuster
|
||||
# - name: Build tar.gz for homebrew installs
|
||||
# run: |
|
||||
# tar czf x86_64-macos-feroxbuster.tar.gz -C target/x86_64-apple-darwin/release feroxbuster
|
||||
# - uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: x86_64-macos-feroxbuster
|
||||
# path: target/x86_64-apple-darwin/release/feroxbuster
|
||||
# - uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: x86_64-macos-feroxbuster.tar.gz
|
||||
# path: x86_64-macos-feroxbuster.tar.gz
|
||||
|
||||
build-windows:
|
||||
env:
|
||||
IN_PIPELINE: true
|
||||
runs-on: ${{ matrix.os }}
|
||||
if: github.ref == 'refs/heads/main'
|
||||
strategy:
|
||||
matrix:
|
||||
type: [windows-x64, windows-x86]
|
||||
include:
|
||||
- type: windows-x64
|
||||
os: windows-latest
|
||||
target: x86_64-pc-windows-msvc
|
||||
name: x86_64-windows-feroxbuster.exe
|
||||
path: target\x86_64-pc-windows-msvc\release\feroxbuster.exe
|
||||
- type: windows-x86
|
||||
os: windows-latest
|
||||
target: i686-pc-windows-msvc
|
||||
name: x86-windows-feroxbuster.exe
|
||||
path: target\i686-pc-windows-msvc\release\feroxbuster.exe
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
target: ${{ matrix.target }}
|
||||
override: true
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
use-cross: true
|
||||
command: build
|
||||
args: --release --target=${{ matrix.target }}
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ matrix.name }}
|
||||
path: ${{ matrix.path }}
|
||||
# build-windows:
|
||||
# env:
|
||||
# IN_PIPELINE: true
|
||||
# runs-on: ${{ matrix.os }}
|
||||
# if: github.ref == 'refs/heads/main'
|
||||
# strategy:
|
||||
# matrix:
|
||||
# type: [windows-x64, windows-x86]
|
||||
# include:
|
||||
# - type: windows-x64
|
||||
# os: windows-latest
|
||||
# target: x86_64-pc-windows-msvc
|
||||
# name: x86_64-windows-feroxbuster.exe
|
||||
# path: target\x86_64-pc-windows-msvc\release\feroxbuster.exe
|
||||
# - type: windows-x86
|
||||
# os: windows-latest
|
||||
# target: i686-pc-windows-msvc
|
||||
# name: x86-windows-feroxbuster.exe
|
||||
# path: target\i686-pc-windows-msvc\release\feroxbuster.exe
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - uses: actions-rs/toolchain@v1
|
||||
# with:
|
||||
# toolchain: stable
|
||||
# target: ${{ matrix.target }}
|
||||
# override: true
|
||||
# - uses: actions-rs/cargo@v1
|
||||
# with:
|
||||
# use-cross: true
|
||||
# command: build
|
||||
# args: --release --target=${{ matrix.target }}
|
||||
# - uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: ${{ matrix.name }}
|
||||
# path: ${{ matrix.path }}
|
||||
|
||||
Reference in New Issue
Block a user