Commit 7cbdd00 1 parent 8209166 commit 7cbdd00 Copy full SHA for 7cbdd00
File tree 2 files changed +53
-2
lines changed
2 files changed +53
-2
lines changed Original file line number Diff line number Diff line change 36
36
runs-on : ubuntu-24.04
37
37
steps :
38
38
- uses : actions/checkout@v4
39
- - run : sudo make install
39
+ - run : sudo make install FORCE_INSTALL=true
40
40
- run : make env lint test
41
41
make-macos :
42
42
runs-on : macos-14
52
52
run : brew install make bash
53
53
- name : ' Add make to PATH'
54
54
run : echo "/opt/homebrew/opt/make/libexec/gnubin" >> "$GITHUB_PATH"
55
- - run : sudo make install
55
+ - run : sudo make install FORCE_INSTALL=true
56
56
- run : make env lint test
Original file line number Diff line number Diff line change 21
21
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
# SOFTWARE.
23
23
24
+
25
+ LINUX_ONLY_PACKAGES=(
26
+ " coreutils"
27
+ " xpdf"
28
+ " libxml2-utils"
29
+ )
30
+
31
+ MACOS_ONLY_PACKAGES=(
32
+ " gnu-sed"
33
+ " wget"
34
+ " poppler"
35
+ " libxml2"
36
+ )
37
+
38
+ PACKAGES_BOTH=(
39
+ " pmd"
40
+ " jpeek"
41
+ " texlive"
42
+ " coreutils"
43
+ " parallel"
44
+ " bc"
45
+ " cloc"
46
+ " jq"
47
+ " shellcheck"
48
+ " aspell"
49
+ " xmlstarlet"
50
+ " gawk"
51
+ " inkscape"
52
+ )
53
+
54
+ if [[ -z " $FORCE_INSTALL " ]]; then
55
+ echo " The following packages will be installed:"
56
+
57
+ if " ${LOCAL} /help/is-linux.sh" ; then
58
+ PACKAGES=(" ${LINUX_ONLY_PACKAGES[@]} " " ${PACKAGES_BOTH[@]} " )
59
+ else
60
+ PACKAGES=(" ${MACOS_ONLY_PACKAGES[@]} " " ${PACKAGES_BOTH[@]} " )
61
+ fi
62
+
63
+ for i in " ${PACKAGES[@]} " ; do
64
+ echo " - ${i} "
65
+ done
66
+
67
+ read -p " Do you want to proceed with the installation? (y/n): " -n 1 -r
68
+ echo
69
+ if [[ ! $REPLY =~ ^[Yy]$ ]]; then
70
+ echo " Installation aborted by user."
71
+ exit 1
72
+ fi
73
+ fi
74
+
24
75
set -e
25
76
set -o pipefail
26
77
You can’t perform that action at this time.
0 commit comments