mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-05-18 22:01:42 -04:00
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:
8
.github/workflows/astronomy-engine-tests.yml
vendored
8
.github/workflows/astronomy-engine-tests.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user