diff options
author | Reiko Asakura | 2021-02-12 09:59:30 -0500 |
---|---|---|
committer | Reiko Asakura | 2021-02-12 09:59:30 -0500 |
commit | 7ddc62f029b34c3a442c6edb8d83385f1784a49b (patch) | |
tree | 9da28154ac671f058d685ff61a31c5d710f75c7e /.github/workflows/test.yml | |
parent | Add package workflow (diff) | |
download | vds-libraries-7ddc62f029b34c3a442c6edb8d83385f1784a49b.tar.gz |
Add test workflow
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r-- | .github/workflows/test.yml | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..4a576d1 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,66 @@ +# +# Copyright (C) 2021 Reiko Asakura. All Rights Reserved. +# +# Vita Development Suite Libraries +# + +name: Test + +on: + push: + schedule: + - cron: '0 10 * * *' + +env: + SCE_ROOT_DIR: ${{ github.workspace }}/ci-base/SCE + SCE_PSP2_SDK_DIR: ${{ github.workspace }}/ci-base/sdk + PSP2SNC: ${{ github.workspace }}/ci-base/sdk/host_tools/build/bin/psp2snc.exe + +jobs: + + test: + name: Test + runs-on: windows-latest + steps: + + - name: Checkout + uses: actions/checkout@v2 + + - name: Checkout CI base + uses: actions/checkout@v2 + with: + repository: Vita-Development-Suite/ci-base + path: ci-base + token: ${{ secrets.PRIVATE_REPO_TOKEN }} + + - name: Compile + run: | + python3 scripts/gen-test-compile.py + if ($LastExitCode -ne 0) { exit $LastExitCode } + Get-ChildItem -File common-*.cpp + | ForEach-Object { + echo "Compiling $_" + ${{ env.PSP2SNC }} $_ -I include/common + if ($LastExitCode -ne 0) { exit $LastExitCode } + } + Get-ChildItem -File user-*.cpp + | ForEach-Object { + echo "Compiling $_" + ${{ env.PSP2SNC }} $_ -I include/user -I include/common + if ($LastExitCode -ne 0) { exit $LastExitCode } + } + Get-ChildItem -File kernel-*.cpp + | ForEach-Object { + echo "Compiling $_" + ${{ env.PSP2SNC }} $_ -I include/kernel -I include/common + if ($LastExitCode -ne 0) { exit $LastExitCode } + } + echo "Compiling all-common.cpp" + ${{ env.PSP2SNC }} all-common.cpp -I include/common + if ($LastExitCode -ne 0) { exit $LastExitCode } + echo "Compiling all-user.cpp" + ${{ env.PSP2SNC }} all-user.cpp -I include/user -I include/common + if ($LastExitCode -ne 0) { exit $LastExitCode } + echo "Compiling all-kernel.cpp" + ${{ env.PSP2SNC }} all-kernel.cpp -I include/kernel -I include/common + if ($LastExitCode -ne 0) { exit $LastExitCode } |