Skip to content

Commit 4078b48

Browse files
committed
Update config
1 parent e5c884c commit 4078b48

File tree

3 files changed

+79
-24
lines changed

3 files changed

+79
-24
lines changed

.github/actions/build-android/action.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ runs:
4242
run: npm run android:debug
4343
shell: bash
4444

45-
- name: Debug APK Output Directory
46-
run: |
47-
echo "Listing APK output directory:"
48-
ls -R ./android/app/build/outputs/apk/ || echo "Directory does not exist"
49-
shell: bash
50-
5145
- name: Copy Android APK to Shared Directory
5246
run: |
5347
mkdir -p ${{ github.workspace }}/artifacts/android-app
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Build iOS App'
2+
description: 'Build iOS app using Fastlane'
3+
4+
runs:
5+
using: 'composite'
6+
7+
steps:
8+
- name: Set up Ruby
9+
uses: ruby/setup-ruby@1a615958ad9d422dd932dc1d5823942ee002799f #v1
10+
with:
11+
ruby-version: '3.2'
12+
13+
- name: Install Fastlane
14+
run: gem install fastlane
15+
shell: bash
16+
17+
- name: Setup Node
18+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e #v4
19+
with:
20+
node-version-file: .nvmrc
21+
22+
- name: Run Fastlane
23+
run: cd ios && fastlane ios release
24+
shell: bash

.github/workflows/MiNe2e.yaml

Lines changed: 55 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,31 @@ jobs:
9696
name: mda
9797
path: automation.mda
9898

99-
android-app:
100-
runs-on: ubuntu-22.04
101-
steps:
102-
- name: "Check out code"
103-
uses: actions/checkout@v4
104-
- name: Build android apk
105-
uses: ./.github/actions/build-android
106-
with:
107-
google_services_json: ${{ secrets.GOOGLE_SERVICES_JSON }}
99+
# android-app:
100+
# runs-on: ubuntu-22.04
101+
# steps:
102+
# - name: "Check out code"
103+
# uses: actions/checkout@v4
104+
# - name: Build android apk
105+
# uses: ./.github/actions/build-android
106+
# with:
107+
# google_services_json: ${{ secrets.GOOGLE_SERVICES_JSON }}
108+
109+
# ios-app:
110+
# runs-on: macOS-13
111+
# steps:
112+
# - name: "Check out code"
113+
# uses: actions/checkout@v4
114+
# - name: Build ios app
115+
# uses: ./.github/actions/build-ios
116+
# env:
117+
# MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
118+
# MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
119+
# KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
120+
# GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }}
121+
# APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }}
122+
# APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
123+
# APP_STORE_CONNECT_KEY_CONTENT: ${{ secrets.APP_STORE_CONNECT_KEY_CONTENT }}
108124

109125
android-test:
110126
needs: [mendix-version, project, android-app]
@@ -116,17 +132,38 @@ jobs:
116132
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
117133
with:
118134
name: mda
119-
- name: "Download Android app"
120-
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
121-
with:
122-
name: android-app
123-
path: android-app
135+
# - name: "Download Android app"
136+
# uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
137+
# with:
138+
# name: android-app
139+
# path: android-app
124140

125-
- name: "Debug Android app directory"
141+
- name: "Install GitHub CLI"
126142
run: |
127-
echo "Listing contents of android-app directory:"
128-
ls -R android-app/
129-
shell: bash
143+
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
144+
sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg
145+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
146+
sudo apt update
147+
sudo apt install gh
148+
- name: "Authenticate GitHub CLI"
149+
run: |
150+
unset GITHUB_TOKEN
151+
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
152+
- name: "Fetch artifacts from run 676"
153+
id: fetch-artifacts
154+
run: |
155+
artifacts_url=$(gh api "repos/${{ github.repository }}/actions/runs/14200920117/artifacts" --jq '.artifacts[] | select(.name == "android-app") | .archive_download_url')
156+
echo "Artifacts URL: $artifacts_url"
157+
echo "artifacts_url=$artifacts_url" >> $GITHUB_ENV
158+
- name: "Download Android app"
159+
if: env.artifacts_url != ''
160+
run: |
161+
if [ -z "$artifacts_url" ]; then
162+
echo "No artifacts URL found."
163+
exit 1
164+
fi
165+
curl -L -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -o android-app.zip "$artifacts_url"
166+
unzip android-app.zip -d android-app
130167
131168
- name: "Check for APK file"
132169
run: |

0 commit comments

Comments
 (0)