forked from openwall/john
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.yml
135 lines (118 loc) · 4.66 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
###############################################################################
# _ _ _ _ _____ _
# | | | | | | | | | __ \(_)
# | | ___ | |__ _ __ | |_| |__ ___ | |__) |_ _ __ _ __ ___ _ __
# _ | |/ _ \| '_ \| '_ \ | __| '_ \ / _ \ | _ /| | '_ \| '_ \ / _ \ '__|
# | |__| | (_) | | | | | | | | |_| | | | __/ | | \ \| | |_) | |_) | __/ |
# \____/ \___/|_| |_|_| |_| \__|_| |_|\___| |_| \_\_| .__/| .__/ \___|_|
# | | | |
# |_| |_|
#
# Copyright (c) 2019-2023 Claudio André <claudioandre.br at gmail.com>
#
# This program comes with ABSOLUTELY NO WARRANTY; express or implied.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, as expressed in version 2, seen at
# http://www.gnu.org/licenses/gpl-2.0.html
###############################################################################
# Cirrus CI configuration
# More info at https://github.com/openwall/john-packages
freebsd_task:
name: FreeBSD
matrix:
- name: FreeBSD 13
freebsd_instance:
image_family: freebsd-13-4-snap
- name: FreeBSD 14
freebsd_instance:
image_family: freebsd-14-2-snap
- name: FreeBSD 15
freebsd_instance:
image_family: freebsd-15-0-snap
env:
CIRRUS_CLONE_DEPTH: "10"
CC: "clang"
BUILD_OPS: "--enable-werror"
MAKE_FLAGS: "-sj4"
TARGET_ARCH : "FreeBSD"
EXTRA: "full;extra"
TEST : "FreeBSD;"
BASE : "Unix like FreeBSD"
IGNORE_OSVERSION: "yes" # debug: try to skip a FreeBSD version mismatch seeing in v. 14.
pkginstall_script:
- pkg update -f
- pkg install -y devel/gmake wget perl5 bash
info_script:
- bash .ci/tests-ci.sh $TARGET_ARCH INFO
build_script:
- cd src
- ./configure "$BUILD_OPS"
- gmake "$MAKE_FLAGS"
test_script:
- bash .ci/tests-ci.sh $TARGET_ARCH TEST
###############################################################################
# _ _ _ _ _____ _
# | | | | | | | | | __ \(_)
# | | ___ | |__ _ __ | |_| |__ ___ | |__) |_ _ __ _ __ ___ _ __
# _ | |/ _ \| '_ \| '_ \ | __| '_ \ / _ \ | _ /| | '_ \| '_ \ / _ \ '__|
# | |__| | (_) | | | | | | | | |_| | | | __/ | | \ \| | |_) | |_) | __/ |
# \____/ \___/|_| |_|_| |_| \__|_| |_|\___| |_| \_\_| .__/| .__/ \___|_|
# | | | |
# |_| |_|
#
# Copyright (c) 2023-2024 Claudio André <dev at claudioandre.slmail.me>
#
# This program comes with ABSOLUTELY NO WARRANTY; express or implied.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, as expressed in version 2, seen at
# http://www.gnu.org/licenses/gpl-2.0.html
###############################################################################
# Cirrus CI configuration
# More info at https://github.com/openwall/john-packages
#---
macOS_task:
name: macOS M2
trigger_type: manual
macos_instance:
image: ghcr.io/cirruslabs/macos-sonoma-xcode:latest
env:
CIRRUS_CLONE_DEPTH: "10"
BUILD_OPS: "--build=aarch64-apple-darwin"
CC: "clang"
MAKE_FLAGS: "-sj4"
TARGET_ARCH: "macOS ARM"
EXTRA: "full;extra"
TEST: "macOS;"
BASE: "Apple macOS M2"
DEPLOY_PAK: "Yes"
RELEASE_COMMIT: "cf7bcbc57d9c520409b62f0e227eef093fc45676"
info_script: |
git clone --depth 10 https://github.com/openwall/john.git ~/tmp
cp -r ~/tmp/. .
wget https://raw.githubusercontent.com/openwall/john-packages/main/scripts/ci_controller.sh \
-O .ci/ci_controller.sh
chmod +x .ci/ci_controller.sh
.ci/ci_controller.sh "$TARGET_ARCH" INFO
echo "$CIRRUS_TASK_ID" > Build._ID
build_script: |
.ci/ci_controller.sh "$TARGET_ARCH" BUILD
# Format crash on ARM
echo '[Local:Disabled:Formats]' >> run/john-local.conf
echo 'SunMD5 = Y' >> run/john-local.conf
.ci/ci_controller.sh "$TARGET_ARCH" TEST
package_script: |
wget https://raw.githubusercontent.com/openwall/john-packages/main/scripts/clean_package.sh \
-O .ci/clean_package.sh
source .ci/clean_package.sh
7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=128m -ms=on JtR-macArm.7z ./
7z a -tzip -mx=9 JtR-macArm.zip ./
sha256sum -- JtR-macArm.*
always:
binaries_artifacts:
path: "JtR-macArm.*"
id_artifacts:
path: "Build._ID"