diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..0eee753a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,47 @@ +name: Build + +on: + push: + branches-ignore: + - gh-pages + pull_request: + branches: + - master + release: + types: + - created + +defaults: + run: + shell: pwsh + +jobs: + build: + runs-on: windows-latest + strategy: + matrix: + platform: ["x86", "x64"] + env: + Configuration: Release + Platform: ${{ matrix.platform }} + steps: + - name: Checkout branch + uses: actions/checkout@v2 + - name: Checkout submodules + run: git submodule update --init --recursive + - name: Locate MSBuild + uses: warrenbuckley/Setup-MSBuild@v1 + - name: Restore + run: msbuild -t:Restore + - name: Build + run: msbuild -t:Build + - name: Upload net461 + uses: actions/upload-artifact@v2 + with: + name: BSIPA-net461 + path: BSIPA-Meta/bin/${{ env.Platform }}/${{ env.Configuration }}/net461/ + - name: Upload net35 + uses: actions/upload-artifact@v2 + with: + name: BSIPA-net35 + path: BSIPA-Meta/bin/${{ env.Platform }}/${{ env.Configuration }}/net35/ \ No newline at end of file diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 45f0e3f6..df137a93 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -33,7 +33,7 @@ jobs: - name: Install DocFX uses: crazy-max/ghaction-chocolatey@v1 with: - args: install docfx --version 2.48 -y + args: install docfx -y - name: Checkout current pages uses: actions/checkout@v2 with: diff --git a/BSIPA.sln b/BSIPA.sln index 903c1e8a..c4ad0f61 100644 --- a/BSIPA.sln +++ b/BSIPA.sln @@ -19,6 +19,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{4D6639A2-BD39-4F9B-AF7F-8E5F3B88243D}" ProjectSection(SolutionItems) = preProject appveyor.yml = appveyor.yml + .github\workflows\build.yml = .github\workflows\build.yml .github\workflows\docs.yml = .github\workflows\docs.yml README.md = README.md .github\workflows\tag_docs.yml = .github\workflows\tag_docs.yml