From 9652cd49f80a4548962a5c4b2aea3a11db165fee Mon Sep 17 00:00:00 2001 From: Marcell Toth Date: Thu, 29 Sep 2022 11:02:21 +0200 Subject: [PATCH 1/3] Setup basic CI pipeline --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5bb62f1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: Test Build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: windows-2022 + steps: + - uses: actions/checkout@v3 + - name: Setup NuGet.exe + uses: nuget/setup-nuget@v1 + with: + nuget-version: latest + - name: Cache NuGet packages + uses: actions/cache@v3 + with: + path: packages + key: nuget-${{ runner.os }}-test-android + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1.1 + - name: Install dependencies + run: nuget restore NeptunLight.sln + - name: Build + run: msbuild src/NeptunLight/NeptunLight.Android.csproj /verbosity:normal /t:PackageForAndroid /p:Configuration=Release \ No newline at end of file From 21f9528a60173133decc04c759d7728a954cb7a9 Mon Sep 17 00:00:00 2001 From: Marcell Toth Date: Thu, 29 Sep 2022 11:05:29 +0200 Subject: [PATCH 2/3] Add nuget config to facilitate caching --- nuget.config | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 nuget.config diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000..4c5ca29 --- /dev/null +++ b/nuget.config @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file From d1a23048d868dc15c84f97d72dc85f4e46bf3b59 Mon Sep 17 00:00:00 2001 From: Marcell Toth Date: Thu, 29 Sep 2022 11:06:11 +0200 Subject: [PATCH 3/3] Fix csproj path --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5bb62f1..e4bbd67 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,4 +25,4 @@ jobs: - name: Install dependencies run: nuget restore NeptunLight.sln - name: Build - run: msbuild src/NeptunLight/NeptunLight.Android.csproj /verbosity:normal /t:PackageForAndroid /p:Configuration=Release \ No newline at end of file + run: msbuild NeptunLight/NeptunLight.Android/NeptunLight.Android.csproj /verbosity:normal /t:PackageForAndroid /p:Configuration=Release \ No newline at end of file