@@ -50,6 +50,104 @@ See related actions below:
5050 apple-id : ${{ secrets.APPLE_APPLE_ID }}
5151` ` `
5252
53+ ## With [Love actions bare package](https://github.com/marketplace/actions/love-actions-bare-package) and [Love actions for testing](https://github.com/marketplace/actions/love-actions-for-testing)
54+
55+ ` ` ` yml
56+ env :
57+ BUILD_TYPE : ${{ fromJSON('["dev", "release"]')[startsWith(github.ref, 'refs/tags/v')] }}
58+ CORE_LOVE_PACKAGE_PATH : ./core.love
59+ CORE_LOVE_ARTIFACT_NAME : core_love_package
60+ PRODUCT_NAME : my_love_app
61+ BUNDLE_ID : com.example.myloveapp
62+
63+ jobs :
64+ build-core :
65+ runs-on : ubuntu-latest
66+ env :
67+ OUTPUT_FOLDER : ./build
68+ steps :
69+ - uses : actions/checkout@v3
70+ with :
71+ submodules : recursive
72+ - name : Build core love package
73+ uses : love-actions/love-actions-core@v1
74+ with :
75+ build-list : ./media/ ./parts/ ./Zframework/ ./conf.lua ./main.lua ./version.lua
76+ package-path : ${{ env.CORE_LOVE_PACKAGE_PATH }}
77+ - name : Upload core love package
78+ uses : actions/upload-artifact@v3
79+ with :
80+ name : ${{ env.CORE_LOVE_ARTIFACT_NAME }}
81+ path : ${{ env.CORE_LOVE_PACKAGE_PATH }}
82+ auto-test :
83+ runs-on : ubuntu-latest
84+ needs : build-core
85+ steps :
86+ - uses : actions/checkout@v3
87+ with :
88+ submodules : recursive
89+ - name : Love actions for testing
90+ uses : love-actions/love-actions-test@v1
91+ with :
92+ font-path : ./parts/fonts/proportional.otf
93+ language-folder : ./parts/language
94+ build-ios :
95+ runs-on : macos-latest
96+ needs : [build-core, auto-test]
97+ env :
98+ OUTPUT_FOLDER : ./build
99+ steps :
100+ - uses : actions/checkout@v3
101+ with :
102+ submodules : recursive
103+ # Download your core love package here
104+ - name : Download core love package
105+ uses : actions/download-artifact@v3
106+ with :
107+ name : ${{ env.CORE_LOVE_ARTIFACT_NAME }}
108+ # This is an example dynamic library
109+ - name : Download ColdClear
110+ uses : ./.github/actions/get-cc
111+ with :
112+ platform : iOS
113+ dir : ./ColdClear
114+ - name : Build iOS packages
115+ id : build-packages
116+ uses : love-actions/love-actions-ios@v1
117+ with :
118+ app-name : ${{ env.PRODUCT_NAME }}
119+ bundle-id : ${{ env.BUNDLE_ID }}
120+ copyright : " Copyright © 2019-2022 26F-Studio. Some Rights Reserved."
121+ icon-path : ./.github/build/iOS/${{ env.BUILD_TYPE }}/icon
122+ love-patch : ./.github/build/iOS/love.patch
123+ love-package : ${{ env.CORE_LOVE_PACKAGE_PATH }}
124+ libs-path : ./ColdClear/arm64/
125+ product-name : ${{ env.PRODUCT_NAME }}
126+ version-string : " 1.0.0"
127+ output-folder : ${{ env.OUTPUT_FOLDER }}
128+ apple-development-base64 : ${{ secrets.APPLE_CERT_APPLE_DEVELOPMENT_BASE64 }}
129+ apple-development-password : ${{ secrets.APPLE_CERT_APPLE_DEVELOPMENT_PWD }}
130+ api-key : ${{ secrets.APPLE_API_KEY }}
131+ api-key-id : ${{ secrets.APPLE_API_KEY_ID }}
132+ api-issuer-id : ${{ secrets.APPLE_API_ISSUER_ID }}
133+ team-id : ${{ secrets.APPLE_DEVELOPER_TEAM_ID }}
134+ apple-id : ${{ secrets.APPLE_APPLE_ID }}
135+ external-test : ${{ startsWith(github.ref, 'refs/tags/pre') }}
136+ store-release : ${{ startsWith(github.ref, 'refs/tags/v') }}
137+ - name : Upload logs artifact
138+ uses : actions/upload-artifact@v3
139+ with :
140+ name : ${{ needs.get-info.outputs.base-name }}_iOS_logs
141+ path : |
142+ ${{ env.OUTPUT_FOLDER }}/DistributionSummary.plist
143+ ${{ env.OUTPUT_FOLDER }}/ExportOptions.plist
144+ ${{ env.OUTPUT_FOLDER }}/Packaging.log
145+ - name : Upload ipa artifact
146+ uses : actions/upload-artifact@v3
147+ with :
148+ name : ${{ needs.get-info.outputs.base-name }}_iOS_ipa
149+ path : ${{ env.OUTPUT_FOLDER }}/${{ steps.process-app-name.outputs.product-name }}.ipa
150+ ` ` `
53151## All inputs
54152
55153| Name | Required | Default | Description |
0 commit comments