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:
|
2024-11-06 10:31:15 +00:00
|
|
|
build:
|
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:
|
2024-12-04 17:45:51 +00:00
|
|
|
shared: [0, 1]
|
2024-11-06 10:31:15 +00:00
|
|
|
include:
|
|
|
|
- os: ubuntu-latest
|
2024-12-04 17:45:51 +00:00
|
|
|
os_name: Linux
|
|
|
|
os_name_lowercase: linux
|
2024-11-06 10:31:15 +00:00
|
|
|
- os: macos-latest
|
2024-12-04 17:45:51 +00:00
|
|
|
os_name: MacOS
|
|
|
|
os_name_lowercase: macos
|
2024-11-06 10:31:15 +00:00
|
|
|
- os: windows-latest
|
2024-12-04 17:45:51 +00:00
|
|
|
os_name: Windows
|
|
|
|
os_name_lowercase: windows
|
2024-11-06 10:31:15 +00:00
|
|
|
name: Build ${{ matrix.os_name }} (${{ matrix.shared == 0 && 'Static' || 'Shared' }})
|
|
|
|
runs-on: ${{ matrix.os }}
|
2022-06-01 11:39:13 +00:00
|
|
|
steps:
|
2024-11-06 10:29:13 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-07-14 23:22:35 +00:00
|
|
|
|
2024-11-06 10:31:15 +00:00
|
|
|
- name: Install dependencies (Windows only)
|
2024-12-04 17:45:51 +00:00
|
|
|
if: matrix.os_name_lowercase == 'windows'
|
2022-07-14 23:22:35 +00:00
|
|
|
uses: msys2/setup-msys2@v2
|
|
|
|
with:
|
|
|
|
update: true
|
|
|
|
install: |
|
|
|
|
gcc
|
|
|
|
git
|
|
|
|
libiconv
|
|
|
|
libiconv-devel
|
|
|
|
make
|
2024-11-06 10:31:15 +00:00
|
|
|
|
2022-07-14 23:22:35 +00:00
|
|
|
- name: Build
|
2024-12-04 17:45:51 +00:00
|
|
|
if: matrix.os_name_lowercase == 'windows'
|
2022-07-14 23:22:35 +00:00
|
|
|
shell: msys2 {0}
|
|
|
|
env:
|
|
|
|
SHARED: ${{ matrix.shared }}
|
|
|
|
run: make
|
2024-11-06 10:31:15 +00:00
|
|
|
|
|
|
|
- name: Build
|
2024-12-04 17:45:51 +00:00
|
|
|
if: matrix.os_name_lowercase != 'windows'
|
2024-11-06 10:31:15 +00:00
|
|
|
env:
|
|
|
|
SHARED: ${{ matrix.shared }}
|
|
|
|
run: make
|
|
|
|
|
2022-07-14 23:22:35 +00:00
|
|
|
- name: Generate artifacts
|
2024-11-06 10:29:13 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-07-14 16:11:57 +00:00
|
|
|
with:
|
2024-12-04 17:45:51 +00:00
|
|
|
name: hashcat-${{ matrix.os_name_lowercase }}-${{ matrix.shared == 0 && 'static' || 'shared' }}
|
2022-07-14 16:11:57 +00:00
|
|
|
path: ${{ env.include_paths }}
|