From 1bd90fafafa71c6ff877dd0c4ff79b1d09743d1c Mon Sep 17 00:00:00 2001 From: Pavel Sountsov Date: Sat, 18 Jan 2020 16:38:57 -0800 Subject: [PATCH 1/5] Setup Windows Github CI. --- .github/workflows/continuous-integration.yml | 28 +++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 10aac823d2..cb48dd4b60 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -1,7 +1,33 @@ name: Tests on: [push, pull_request] - jobs: + windows_test: + name: Windows testss + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + with: + fetch-depth: 1 + - name: Setup + uses: nuget/setup-nuget@v1 + run: | + vcpkg install allegro5 + mkdir deps + mkdir deps\include + mkdir deps\lib + nuget install AllegroDeps -Version 1.5.0 -OutputDirectory deps -ExcludeVersion + move deps\AllegroDeps\build\native\include\* deps\include -force + move deps\AllegroDeps\build\native\v140\win32\deps\lib\* deps\lib -force + shell: powershell + - name: Configure + run: | + cd build + cmake .. -G "Visual Studio 15 2017" -DWANT_ACODEC_DYNAMIC_LOAD=off -DFLAC_STATIC=on + - name: Build + run: | + cd build + cmake --build . --config Debug osx_test: name: OSX tests runs-on: macos-latest From ec8b5670a4712424afe83fb780af763d01fdc9a9 Mon Sep 17 00:00:00 2001 From: Pavel Sountsov Date: Sat, 18 Jan 2020 16:52:06 -0800 Subject: [PATCH 2/5] Trigger the test again? --- .github/workflows/continuous-integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index cb48dd4b60..9836275317 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -2,7 +2,7 @@ name: Tests on: [push, pull_request] jobs: windows_test: - name: Windows testss + name: Windows tests runs-on: windows-latest steps: - name: Checkout From d9a4122073257b3c1ca3251fabf366d7a3855a91 Mon Sep 17 00:00:00 2001 From: Pavel Sountsov Date: Sat, 18 Jan 2020 16:56:58 -0800 Subject: [PATCH 3/5] Fix Nuget installation. --- .github/workflows/continuous-integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 9836275317..5f7dc80dd7 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -9,8 +9,8 @@ jobs: uses: actions/checkout@v1 with: fetch-depth: 1 + - uses: nuget/setup-nuget@v1 - name: Setup - uses: nuget/setup-nuget@v1 run: | vcpkg install allegro5 mkdir deps From 91487a1c2bf747be934b2a8f6021e18db8713223 Mon Sep 17 00:00:00 2001 From: Pavel Sountsov Date: Sat, 18 Jan 2020 16:58:45 -0800 Subject: [PATCH 4/5] Add the build directory. --- .github/workflows/continuous-integration.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 5f7dc80dd7..de142942e7 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -13,6 +13,7 @@ jobs: - name: Setup run: | vcpkg install allegro5 + mkdir build mkdir deps mkdir deps\include mkdir deps\lib From 094af7e4cd2f6289c2db4274a8d837823e581f6a Mon Sep 17 00:00:00 2001 From: Pavel Sountsov Date: Sat, 18 Jan 2020 17:01:29 -0800 Subject: [PATCH 5/5] Drop the generator? --- .github/workflows/continuous-integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index de142942e7..791584b088 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -24,7 +24,7 @@ jobs: - name: Configure run: | cd build - cmake .. -G "Visual Studio 15 2017" -DWANT_ACODEC_DYNAMIC_LOAD=off -DFLAC_STATIC=on + cmake .. -DWANT_ACODEC_DYNAMIC_LOAD=off -DFLAC_STATIC=on - name: Build run: | cd build