Skip to content

Commit b7085f7

Browse files
committed
chore: xattr -d
1 parent a25e5c7 commit b7085f7

File tree

1 file changed

+22
-98
lines changed

1 file changed

+22
-98
lines changed

.github/workflows/ui-tests.yml

Lines changed: 22 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ concurrency:
1111
cancel-in-progress: true
1212

1313
jobs:
14-
windows:
14+
build:
1515
name: Build sample game for AltTester 🛠️
16-
runs-on: windows-2022
16+
runs-on: macos-latest
1717
steps:
1818
- uses: actions/checkout@v3
1919
with:
@@ -30,27 +30,38 @@ jobs:
3030
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
3131
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
3232
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
33-
ALTSERVER_HOST: 54.66.58.33
34-
ALTSERVER_PORT: 13000
3533
with:
36-
targetPlatform: StandaloneWindows64
34+
targetPlatform: StandaloneOSX
3735
projectPath: sample
38-
buildMethod: WindowsBuilder.BuildForAltTester
36+
buildMethod: MacBuilder.BuildForAltTester
3937
customParameters: -logFile logFile.log -quit -batchmode
38+
- name: build permissions
39+
run: |
40+
chmod -R 755 sample/Builds/MacOS/SampleApp.app
41+
xattr -d com.apple.quarantine sample/Builds/MacOS/SampleApp.app
4042
- name: Upload artifact
4143
uses: actions/upload-artifact@v4
42-
if: always()
4344
with:
44-
name: Build-StandaloneWindows64
45-
path: sample/**
45+
name: Build-StandaloneOSX
46+
path: sample/Builds/MacOS
47+
test:
48+
name: Run UI tests on AltTester 🧪
49+
runs-on: macos-latest
50+
needs: build
51+
steps:
52+
- uses: actions/checkout@v3
53+
with:
54+
lfs: true
55+
- uses: actions/download-artifact@v4
56+
with:
57+
name: Build-StandaloneOSX
4658
- name: Open application
4759
run: |
48-
pwd
49-
ls -la
5060
export RUN_IN_BROWSERSTACK="false"
5161
export ALTSERVER_HOST="54.66.58.33"
5262
export ALTSERVER_PORT=13000
5363
chmod -R 755 SampleApp.app
64+
xattr -d com.apple.quarantine SampleApp.app
5465
open SampleApp.app
5566
- uses: actions/setup-python@v4
5667
with:
@@ -59,94 +70,7 @@ jobs:
5970
run: pip install -r "sample/Tests/requirements.txt"
6071
- name: Run UI tests
6172
run: |
62-
pwd
63-
ls -la
6473
export ALTSERVER_HOST="54.66.58.33"
6574
export ALTSERVER_PORT=13000
6675
pytest -s -v sample/Tests/test.py
67-
macos:
68-
name: Build sample game for AltTester 🛠️
69-
runs-on: macos-15
70-
steps:
71-
- uses: actions/checkout@v3
72-
with:
73-
lfs: true
74-
- uses: actions/cache@v3
75-
with:
76-
path: Library
77-
key: Library-${{ hashFiles('sample/Assets/**', 'sample/Packages/**', 'sample/ProjectSettings/**') }}
78-
restore-keys: |
79-
Library-
80-
- uses: buildalon/unity-setup@v1
81-
with:
82-
unity-version: 2021.3.26f1(a16dc32e0ff2)
83-
build-targets: StandaloneOSX
84-
modules: mac-server
85-
86-
- run: |
87-
echo "UNITY_HUB_PATH: '${{ env.UNITY_HUB_PATH }}'"
88-
echo "UNITY_EDITORS: '${{ env.UNITY_EDITORS }}'"
89-
echo "UNITY_EDITOR_PATH: '${{ env.UNITY_EDITOR_PATH }}'"
90-
echo "UNITY_PROJECT_PATH: '${{ env.UNITY_PROJECT_PATH }}'"
91-
${{ env.UNITY_EDITOR_PATH }} -quit -batchmode -projectPath ${{ env.UNITY_PROJECT_PATH }} -executeMethod MacBuilder.BuildForAltTester -logFile unity_build.log 2>&1
92-
continue-on-error: true
93-
- name: Upload Unity Build Log
94-
uses: actions/upload-artifact@v3
95-
with:
96-
name: Unity-Build-Log
97-
path: unity_build.log
98-
# build:
99-
# name: Build sample game for AltTester 🛠️
100-
# runs-on: macos-15
101-
# steps:
102-
# - uses: actions/checkout@v3
103-
# with:
104-
# lfs: true
105-
# - uses: actions/cache@v3
106-
# with:
107-
# path: Library
108-
# key: Library-${{ hashFiles('sample/Assets/**', 'sample/Packages/**', 'sample/ProjectSettings/**') }}
109-
# restore-keys: |
110-
# Library-
111-
# - uses: buildalon/unity-setup@v1
112-
# with:
113-
# unity-version: 2021.3.26f1
114-
# build-targets: StandaloneOSX
115-
# modules: mac-server
116-
#
117-
# - run: |
118-
# echo "UNITY_HUB_PATH: '${{ env.UNITY_HUB_PATH }}'"
119-
# echo "UNITY_EDITORS: '${{ env.UNITY_EDITORS }}'"
120-
# echo "UNITY_EDITOR_PATH: '${{ env.UNITY_EDITOR_PATH }}'"
121-
# echo "UNITY_PROJECT_PATH: '${{ env.UNITY_PROJECT_PATH }}'"
122-
# test:
123-
# name: Run UI tests on AltTester 🧪
124-
# runs-on: macos-latest
125-
# needs: build
126-
# steps:
127-
# - uses: actions/checkout@v3
128-
# with:
129-
# lfs: true
130-
# - uses: actions/download-artifact@v4
131-
# with:
132-
# name: Build-StandaloneWindows64
133-
# - name: Open application
134-
# run: |
135-
# pwd
136-
# ls -la
137-
# export RUN_IN_BROWSERSTACK="false"
138-
# export ALTSERVER_HOST="54.66.58.33"
139-
# export ALTSERVER_PORT=13000
140-
# chmod -R 755 SampleApp.app
141-
# open SampleApp.app
142-
# - uses: actions/setup-python@v4
143-
# with:
144-
# python-version: "3.10"
145-
# - name: Install dependencies
146-
# run: pip install -r "sample/Tests/requirements.txt"
147-
# - name: Run UI tests
148-
# run: |
149-
# export ALTSERVER_HOST="54.66.58.33"
150-
# export ALTSERVER_PORT=13000
151-
# pytest -s -v sample/Tests/test.py
15276

0 commit comments

Comments
 (0)