Skip to content

Commit

Permalink
Merge pull request #342 from timur-harin/add_macos_runner
Browse files Browse the repository at this point in the history
Add macos runner
  • Loading branch information
yegor256 authored May 27, 2024
2 parents fde84b3 + 485e5b9 commit d9a51b6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,14 @@ jobs:
- uses: actions/checkout@v4
- run: make install
- run: make env lint test
make-macos:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- name: 'Set up latest Oracle JDK 22'
uses: oracle-actions/setup-java@v1
with:
website: oracle.com
release: 22
- run: sudo chown -R "$(whoami)" /usr/local
- run: make install
9 changes: 7 additions & 2 deletions installs/install-jpeek.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ fi
jpeek_version=0.32.0
cd /tmp
wget --quiet https://repo1.maven.org/maven2/org/jpeek/jpeek/${jpeek_version}/jpeek-${jpeek_version}-jar-with-dependencies.jar
mkdir -p "$(dirname "${JPEEK}")"
mv "jpeek-${jpeek_version}-jar-with-dependencies.jar" "${JPEEK}"
if "${LOCAL}/help/is-macos.sh"; then
"${LOCAL}/help/sudo.sh" mkdir -p "$(dirname "${JPEEK}")"
"${LOCAL}/help/sudo.sh" mv "jpeek-${jpeek_version}-jar-with-dependencies.jar" "${JPEEK}"
elif "${LOCAL}/help/is-linux.sh"; then
mkdir -p "$(dirname "${JPEEK}")"
mv "jpeek-${jpeek_version}-jar-with-dependencies.jar" "${JPEEK}"
fi
java -jar "${JPEEK}" --help
echo "jPeek downloaded into ${JPEEK}"
2 changes: 1 addition & 1 deletion installs/install-pmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ unzip -qq pmd-bin-${pmd_version}.zip
rm pmd-bin-${pmd_version}.zip
mv pmd-bin-${pmd_version} pmd
ln -s /usr/local/pmd/bin/run.sh /usr/local/bin/pmd
echo "PMD installed into /usr/local/bin/pmd"
echo "PMD installed into /usr/local/bin/pmd"
1 change: 1 addition & 0 deletions steps/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ install_package gawk

if "${LOCAL}/help/is-macos.sh"; then
brew install coreutils
brew install wget
fi

if ! pdftotext -v >/dev/null 2>&1; then
Expand Down

0 comments on commit d9a51b6

Please sign in to comment.