1919 --security-opt apparmor:unconfined
2020 strategy :
2121 matrix :
22- flavour : [pkg-appimage-snapshot, pkg-appimage-deployment, pkg-appimage ]
22+ flavour : [deployment, test, dev ]
2323 steps :
2424 # # This is for debugging only and helps developing the workflow.
2525 # - name: Environment Variables
@@ -58,11 +58,14 @@ jobs:
5858 ldconfig
5959 - name : Build Oolite
6060 run : |
61- ShellScripts/common/build_oolite.sh ${{matrix.flavour}}
61+ ./mk.sh build ${{matrix.flavour}} --github-repository="$GITHUB_REPOSITORY"
62+ - name : Package Oolite
63+ run : |
64+ ./mk.sh pkg-appimage ${{matrix.flavour}}
6265 - name : Archive installer
6366 uses : actions/upload-artifact@v6
6467 with :
65- name : oolite-linux-${{matrix.flavour}}
68+ name : oolite-linux-appimage- ${{matrix.flavour}}
6669 path : |
6770 build/oolite*.AppImage
6871 retention-days : 5
@@ -90,11 +93,15 @@ jobs:
9093 fetch-depth : 0
9194 - name : Build flatpak
9295 run : |
93- installers/flatpak/create_flatpak.sh
96+ echo "Installing gitversion..."
97+ source ShellScripts/Linux/install_gitversion_fn.sh
98+ mkdir -p /usr/local/bin
99+ install_gitversion "."
100+ ./mk.sh pkg-flatpak deployment --github-repository="$GITHUB_REPOSITORY"
94101 - name : Archive installer
95102 uses : actions/upload-artifact@v6
96103 with :
97- name : oolite-flatpak
104+ name : oolite-linux- flatpak-deployment
98105 path : |
99106 build/space.oolite.Oolite*.flatpak
100107 retention-days : 5
@@ -103,7 +110,7 @@ jobs:
103110 runs-on : windows-latest
104111 strategy :
105112 matrix :
106- flavour : [pkg-win-snapshot, pkg-win-deployment, pkg-win ]
113+ flavour : [deployment, test, dev ]
107114 steps :
108115 # # This is for debugging only and helps developing the workflow.
109116 # - name: Environment Variables
@@ -117,6 +124,7 @@ jobs:
117124 - name : Set up MSYS2
118125 uses : msys2/setup-msys2@v2
119126 with :
127+ msystem : UCRT64
120128 update : true
121129 cache : false
122130 - name : Checkout Oolite
@@ -139,12 +147,20 @@ jobs:
139147 shell : msys2 {0}
140148 env :
141149 msystem : UCRT64
150+ PYTHONUTF8 : " 1"
151+ run : |
152+ ./mk.sh build ${{matrix.flavour}} --github-repository="$GITHUB_REPOSITORY"
153+ - name : Package Oolite
154+ shell : msys2 {0}
155+ env :
156+ msystem : UCRT64
157+ PYTHONUTF8 : " 1"
142158 run : |
143- ShellScripts/common/build_oolite .sh ${{matrix.flavour}}
159+ ./mk .sh pkg-win ${{matrix.flavour}}
144160 - name : Archive installer
145161 uses : actions/upload-artifact@v6
146162 with :
147- name : oolite-windows-${{matrix.flavour}}
163+ name : oolite-windows-nsis- ${{matrix.flavour}}
148164 path : |
149165 build/OoliteInstall*.exe
150166 retention-days : 5
@@ -164,7 +180,7 @@ jobs:
164180 uses : actions/download-artifact@v7
165181 with :
166182 path : artifacts
167- - name : Calculate version number and set OOLITE_VERSION
183+ - name : Calculate version number and set VER_FULL
168184 id : version
169185 run : |
170186 set -x
@@ -184,14 +200,14 @@ jobs:
184200 echo "Found AppImage: $APPIMAGE_PATH"
185201 # 3. Run with packageinfo and extract the string inside quotes
186202 chmod +x "$APPIMAGE_PATH"
187- VERSION_STR =$("$APPIMAGE_PATH" packageinfo | awk -F'"' '/^[[:space:]]*version =/ {print $2; exit}')
188- if [[ -z "$VERSION_STR " ]]; then
203+ VER_FULL =$("$APPIMAGE_PATH" packageinfo | awk -F'"' '/^[[:space:]]*version =/ {print $2; exit}')
204+ if [[ -z "$VER_FULL " ]]; then
189205 echo "❌ Failed to extract version string from packageinfo output!" >&2
190206 exit 1
191207 fi
192- echo "Extracted Version: $VERSION_STR "
208+ echo "Extracted Version: $VER_FULL "
193209 # 4. Output the extracted version for subsequent steps
194- echo "OOLITE_VERSION=$VERSION_STR " >> "$GITHUB_OUTPUT"
210+ echo "VER_FULL=$VER_FULL " >> "$GITHUB_OUTPUT"
195211 - name : Remove old prereleases
196212 if : github.ref == 'refs/heads/master' || endsWith(github.ref, 'maintenance')
197213 uses : s00d/delete-older-releases@0.2.1
@@ -208,17 +224,17 @@ jobs:
208224 with :
209225 repo_token : " ${{ secrets.GITHUB_TOKEN }}"
210226 # automatic_release_tag: "latest"
211- automatic_release_tag : " ${{ steps.version.outputs.OOLITE_VERSION }}"
227+ automatic_release_tag : " ${{ steps.version.outputs.VER_FULL }}"
212228 prerelease : true
213- title : " Oolite ${{ steps.version.outputs.OOLITE_VERSION }}"
229+ title : " Oolite ${{ steps.version.outputs.VER_FULL }}"
214230 files : |
215- artifacts/oolite-windows-pkg-win-snapshot /OoliteInstall-*-dev .exe
216- artifacts/oolite-windows-pkg-win-deployment /OoliteInstall-*.exe
217- artifacts/oolite-windows-pkg-win /OoliteInstall-*.exe
218- artifacts/oolite-linux-pkg- appimage-snapshot /*.AppImage
219- artifacts/oolite-linux-pkg- appimage-deployment /*.AppImage
220- artifacts/oolite-linux-pkg- appimage/*.AppImage
221- artifacts/oolite-flatpak/*.flatpak
231+ artifacts/oolite-windows-nsis-deployment /OoliteInstall-*.exe
232+ artifacts/oolite-windows-nsis-test /OoliteInstall-*.exe
233+ artifacts/oolite-windows-nsis-dev /OoliteInstall-*-dev .exe
234+ artifacts/oolite-linux-appimage-deployment /*.AppImage
235+ artifacts/oolite-linux-appimage-test /*.AppImage
236+ artifacts/oolite-linux-appimage-dev /*.AppImage
237+ artifacts/oolite-linux- flatpak-deployment /*.flatpak
222238 - name : Remove old workflow runs
223239 if : github.ref == 'refs/heads/master' || endsWith(github.ref, 'maintenance')
224240 uses : Mattraks/delete-workflow-runs@v2
0 commit comments