Cleaned up GitHub Actions configuration.

Deleted the do-nothing placeholders for installing
the Kotlin Native compiler. We are not going to support
Kotlin Native for now.

Removed redundant installation of pylint from the
Windows commit_hook.bat.

Other batch file cleanup, now that I know "||" works in Windows.
This commit is contained in:
Don Cross
2022-05-02 12:30:23 -04:00
parent e11cb1721b
commit 90aa6ed369
2 changed files with 5 additions and 21 deletions

View File

@@ -35,18 +35,12 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Install Kotlin Native compiler Linux
if: startsWith(matrix.os, 'ubuntu')
run: generate/install_kotlin_native 'https://github.com/JetBrains/kotlin/releases/download/v1.6.20/kotlin-native-linux-x86_64-1.6.20.tar.gz'
- uses: gradle/wrapper-validation-action@v1
- name: Test Astronomy Engine Linux
if: startsWith(matrix.os, 'ubuntu')
run: cd generate && rm -f output/vsop*.txt output/*.eph output/jupiter_moons.txt && ./run && ./verify_clean
- name: Install Kotlin Native compiler macOs
if: startsWith(matrix.os, 'macOS')
run: generate/install_kotlin_native 'https://github.com/JetBrains/kotlin/releases/download/v1.6.20/kotlin-native-macos-x86_64-1.6.20.tar.gz'
- uses: gradle/wrapper-validation-action@v1
- name: Test Astronomy Engine macOs
if: startsWith(matrix.os, 'macOS')
run: cd generate && rm -f output/vsop*.txt output/*.eph output/jupiter_moons.txt && ./run && ./verify_clean

View File

@@ -8,28 +8,18 @@ REM Change to project/repo root directory.
cd %~dp0\..
echo.commit_hook: Repo root = %cd%
echo.commit_hook: Installing Python linter.
python -m pip install --upgrade pip
if errorlevel 1 (exit /b 1)
pip install pylint
if errorlevel 1 (exit /b 1)
echo.commit_hook: Installing Doxygen.
md bin
cd bin
curl -o doxygen.zip https://www.doxygen.nl/files/doxygen-1.9.3.windows.x64.bin.zip
if errorlevel 1 (exit /b 1)
7z x doxygen.zip
if errorlevel 1 (exit /b 1)
curl -o doxygen.zip https://www.doxygen.nl/files/doxygen-1.9.3.windows.x64.bin.zip || exit /b 1
7z x doxygen.zip || exit /b 1
del doxygen.zip
REM change to 'generate' directory, which is where this batch file is located.
cd %~dp0
echo.commit_hook: Running Astronomy Engine tests.
del output\vsop*.txt output\*.eph output\jupiter_moons.txt
call run.bat
if errorlevel 1 (exit /b 1)
call verify_clean.bat
if errorlevel 1 (exit /b 1)
call run.bat || exit /b 1
call verify_clean.bat || exit /b 1
echo.commit_hook: SUCCESS
exit /b 0