2022-06-01 11:39:13 +00:00
|
|
|
name: Build
|
|
|
|
|
2022-07-14 16:11:57 +00:00
|
|
|
env:
|
|
|
|
include_paths: |
|
2022-07-14 23:22:35 +00:00
|
|
|
charsets/
|
|
|
|
docs/
|
|
|
|
extra/
|
|
|
|
layouts/
|
|
|
|
masks/
|
|
|
|
modules/
|
|
|
|
OpenCL/
|
|
|
|
rules/
|
|
|
|
example*
|
|
|
|
hashcat*
|
|
|
|
libhashcat*
|
2022-07-14 16:11:57 +00:00
|
|
|
|
2022-06-01 11:39:13 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
- v*
|
|
|
|
paths:
|
|
|
|
- 'OpenCL/**.h'
|
|
|
|
- 'OpenCL/**.cl'
|
|
|
|
- 'include/**.h'
|
|
|
|
- 'src/**.c'
|
|
|
|
- 'tools/**'
|
|
|
|
- '**/Makefile'
|
2022-07-14 16:11:57 +00:00
|
|
|
- '.github/workflows/build.yml'
|
2022-06-01 11:39:13 +00:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- 'OpenCL/**.h'
|
|
|
|
- 'OpenCL/**.cl'
|
|
|
|
- 'include/**.h'
|
|
|
|
- 'src/**.c'
|
|
|
|
- 'tools/**'
|
|
|
|
- '**/Makefile'
|
2022-07-14 16:11:57 +00:00
|
|
|
- '.github/workflows/build.yml'
|
2022-06-01 11:39:13 +00:00
|
|
|
|
|
|
|
jobs:
|
2022-07-14 23:22:35 +00:00
|
|
|
build-linux:
|
2022-06-01 11:39:13 +00:00
|
|
|
strategy:
|
2022-06-23 12:18:56 +00:00
|
|
|
fail-fast: false
|
2022-06-01 11:39:13 +00:00
|
|
|
matrix:
|
2022-06-21 15:56:22 +00:00
|
|
|
shared: [0, 1]
|
2022-07-14 23:22:35 +00:00
|
|
|
name: Build Linux (${{ matrix.shared == 0 && 'Static' || 'Shared' }})
|
|
|
|
runs-on: ubuntu-latest
|
2022-06-01 11:39:13 +00:00
|
|
|
steps:
|
2022-07-14 23:22:35 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build
|
|
|
|
env:
|
|
|
|
SHARED: ${{ matrix.shared }}
|
|
|
|
run: make
|
|
|
|
- name: Generate artifacts
|
|
|
|
uses: actions/upload-artifact@v3
|
2022-07-14 18:30:47 +00:00
|
|
|
with:
|
2022-07-19 12:27:16 +00:00
|
|
|
name: hashcat-linux-${{ matrix.shared == 0 && 'static' || 'shared' }}
|
2022-07-14 23:22:35 +00:00
|
|
|
path: ${{ env.include_paths }}
|
|
|
|
|
|
|
|
build-macos:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
shared: [0, 1]
|
2022-07-14 23:27:22 +00:00
|
|
|
name: Build macOS (${{ matrix.shared == 0 && 'Static' || 'Shared' }})
|
2022-07-14 23:22:35 +00:00
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build
|
2022-06-21 15:56:22 +00:00
|
|
|
env:
|
|
|
|
SHARED: ${{ matrix.shared }}
|
2022-06-01 11:39:13 +00:00
|
|
|
run: make
|
2022-07-14 23:22:35 +00:00
|
|
|
- name: Generate artifacts
|
2022-07-14 18:30:47 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2022-07-19 12:27:16 +00:00
|
|
|
name: hashcat-macos-${{ matrix.shared == 0 && 'static' || 'shared' }}
|
2022-07-14 18:30:47 +00:00
|
|
|
path: ${{ env.include_paths }}
|
2022-07-14 23:22:35 +00:00
|
|
|
|
|
|
|
build-windows:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
shared: [0, 1]
|
|
|
|
name: Build Windows (${{ matrix.shared == 0 && 'Static' || 'Shared' }})
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Install libiconv
|
|
|
|
uses: msys2/setup-msys2@v2
|
|
|
|
with:
|
|
|
|
update: true
|
|
|
|
install: |
|
|
|
|
gcc
|
|
|
|
git
|
|
|
|
libiconv
|
|
|
|
libiconv-devel
|
|
|
|
make
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build
|
|
|
|
shell: msys2 {0}
|
|
|
|
env:
|
|
|
|
SHARED: ${{ matrix.shared }}
|
|
|
|
run: make
|
|
|
|
- name: Generate artifacts
|
2022-07-14 16:11:57 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2022-07-19 12:27:16 +00:00
|
|
|
name: hashcat-windows-${{ matrix.shared == 0 && 'static' || 'shared' }}
|
2022-07-14 16:11:57 +00:00
|
|
|
path: ${{ env.include_paths }}
|