Skip to content

Commit 5e16a86

Browse files
committed
Update windbot.yml
1 parent 7691b54 commit 5e16a86

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

.github/workflows/windbot.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,63 @@ jobs:
127127
with:
128128
release_id: ${{ needs.create_release.outputs.output }}
129129
assets_path: assets
130+
131+
Android2:
132+
runs-on: windows-2019
133+
needs: create_release
134+
if: >-
135+
!(
136+
contains(github.event.head_commit.message, '[ci skip]') ||
137+
contains(github.event.head_commit.message, '[skip ci]') ||
138+
contains(github.event.head_commit.message, '[actions skip]') ||
139+
contains(github.event.head_commit.message, '[skip actions]')
140+
)
141+
env:
142+
TRAVIS_OS_NAME: android
143+
steps:
144+
- name: Set ARTIFACT env var
145+
shell: bash
146+
run: |
147+
echo "ARTIFACT=WindBotIgnite-Release-$(date +%Y%m%d)-${{ github.sha }}.zip" >> $GITHUB_ENV
148+
- name: Add msbuild to PATH
149+
uses: microsoft/setup-msbuild@v1.0.2
150+
- uses: actions/checkout@v1
151+
with:
152+
fetch-depth: 1
153+
submodules: true
154+
# Unspecified dependency for Embeddinator; 64-bit does not work
155+
- name: Install mono
156+
shell: bash
157+
run: |
158+
choco install mono --x86
159+
- name: Install ndk 15
160+
shell: bash
161+
env:
162+
VS_PREFIX: "16.0_"
163+
run: |
164+
./ci/install-sdk-ndk.sh
165+
- name: Build
166+
shell: bash
167+
run: |
168+
nuget restore WindBot.sln
169+
msbuild.exe -m -p:Configuration=Release WindBot.sln
170+
- name: Predeploy
171+
shell: bash
172+
run: |
173+
cd bin && mkdir -p WindBot
174+
cp -r Release/COPYING Release/LICENSE Release/bots.json Release/Decks/ Release/Dialogs/ WindBot/
175+
7z a WindBotIgnite-Resources.7z WindBot && cd ..
176+
mkdir -p assets
177+
mv output/libWindbot.aar bin/WindBotIgnite-Resources.7z assets
178+
- name: Upload Release Assets
179+
if: startsWith(github.ref, 'refs/tags/')
180+
id: upload-release-assets
181+
uses: dwenegar/upload-release-assets@v1
182+
env:
183+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
184+
with:
185+
release_id: ${{ needs.create_release.outputs.output }}
186+
assets_path: assets
130187

131188

132189
# assets to upload android

0 commit comments

Comments
 (0)