From 5e16a86942465be2270ad9227edd5c5088bd419f Mon Sep 17 00:00:00 2001 From: Edoardo Lolletti Date: Mon, 19 Apr 2021 01:44:53 +0200 Subject: [PATCH] Update windbot.yml --- .github/workflows/windbot.yml | 57 +++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/.github/workflows/windbot.yml b/.github/workflows/windbot.yml index a9064e6f..6491be8b 100644 --- a/.github/workflows/windbot.yml +++ b/.github/workflows/windbot.yml @@ -127,6 +127,63 @@ jobs: with: release_id: ${{ needs.create_release.outputs.output }} assets_path: assets + + Android2: + runs-on: windows-2019 + needs: create_release + if: >- + !( + contains(github.event.head_commit.message, '[ci skip]') || + contains(github.event.head_commit.message, '[skip ci]') || + contains(github.event.head_commit.message, '[actions skip]') || + contains(github.event.head_commit.message, '[skip actions]') + ) + env: + TRAVIS_OS_NAME: android + steps: + - name: Set ARTIFACT env var + shell: bash + run: | + echo "ARTIFACT=WindBotIgnite-Release-$(date +%Y%m%d)-${{ github.sha }}.zip" >> $GITHUB_ENV + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + - uses: actions/checkout@v1 + with: + fetch-depth: 1 + submodules: true +# Unspecified dependency for Embeddinator; 64-bit does not work + - name: Install mono + shell: bash + run: | + choco install mono --x86 + - name: Install ndk 15 + shell: bash + env: + VS_PREFIX: "16.0_" + run: | + ./ci/install-sdk-ndk.sh + - name: Build + shell: bash + run: | + nuget restore WindBot.sln + msbuild.exe -m -p:Configuration=Release WindBot.sln + - name: Predeploy + shell: bash + run: | + cd bin && mkdir -p WindBot + cp -r Release/COPYING Release/LICENSE Release/bots.json Release/Decks/ Release/Dialogs/ WindBot/ + 7z a WindBotIgnite-Resources.7z WindBot && cd .. + mkdir -p assets + mv output/libWindbot.aar bin/WindBotIgnite-Resources.7z assets + - name: Upload Release Assets + if: startsWith(github.ref, 'refs/tags/') + id: upload-release-assets + uses: dwenegar/upload-release-assets@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + release_id: ${{ needs.create_release.outputs.output }} + assets_path: assets # assets to upload android