@@ -128,7 +128,7 @@ jobs:
128
128
- {os: ubuntu, codename: noble, image_owner: }
129
129
# - {os: raspbian, codename: buster, image_owner: igagis/, labels: [ubuntu-24.04-arm]}
130
130
# - {os: raspbian, codename: bullseye, image_owner: igagis/, labels: [ubuntu-24.04-arm]}
131
- - {os: raspbian, codename: bookworm, image_owner: igagis/, labels: [ubuntu-24.04-arm]}
131
+ # - {os: raspbian, codename: bookworm, image_owner: igagis/, labels: [ubuntu-24.04-arm]}
132
132
runs-on : ${{ (matrix.labels == '' && 'ubuntu-latest') || matrix.labels }}
133
133
container : ${{ matrix.image_owner }}${{ matrix.os }}:${{ matrix.codename }}
134
134
name : linux - ${{ matrix.image_owner }}${{ matrix.os }}:${{ matrix.codename }}
@@ -154,13 +154,15 @@ jobs:
154
154
uses : myci-actions/checkout@main
155
155
- name : set PACKAGE_VERSION
156
156
uses : myci-actions/export-env-var@main
157
- with : {name: PACKAGE_VERSION, value: $(myci-deb-version.sh debian/changelog )}
157
+ with : {name: PACKAGE_VERSION, value: $(myci-deb-version.sh)}
158
158
- name : prepare debian package
159
159
run : myci-deb-prepare.sh
160
160
- name : install deps
161
161
run : myci-deb-install-build-deps.sh
162
162
- name : build
163
- run : dpkg-buildpackage --unsigned-source --unsigned-changes
163
+ run : |
164
+ cd build
165
+ dpkg-buildpackage --unsigned-source --unsigned-changes
164
166
# - name: publish test report
165
167
# uses: EnricoMi/publish-unit-test-result-action/[email protected]
166
168
# if: always()
@@ -170,7 +172,7 @@ jobs:
170
172
- name : deploy deb packages
171
173
run : |
172
174
echo "${{ secrets.MYCI_REPO_SSH_KEY }}" > repo_key_rsa && chmod 600 repo_key_rsa
173
- myci-deploy-apt-ssh.sh --key repo_key_rsa --server gagis.hopto.org --repo cppfw/${{ matrix.os }} --distro ${{ matrix.codename }} --component main ../ lib${PACKAGE_NAME}*_${PACKAGE_VERSION}_*.*deb
175
+ myci-deploy-apt-ssh.sh --key repo_key_rsa --server gagis.hopto.org --repo cppfw/${{ matrix.os }} --distro ${{ matrix.codename }} --component main lib${PACKAGE_NAME}*_${PACKAGE_VERSION}_*.*deb
174
176
if : startsWith(github.ref, 'refs/tags/')
175
177
# #### archlinux #####
176
178
# archlinux:
@@ -200,7 +202,7 @@ jobs:
200
202
# uses: myci-actions/checkout@main
201
203
# - name: set PACKAGE_VERSION
202
204
# uses: myci-actions/export-env-var@main
203
- # with: {name: PACKAGE_VERSION, value: $(myci-deb-version.sh debian/changelog )}
205
+ # with: {name: PACKAGE_VERSION, value: $(myci-deb-version.sh)}
204
206
# # makepkg needs to install dependency packages, so nobody user needs sudo rights
205
207
# - name: add nobody to sudoers
206
208
# run: |
@@ -209,12 +211,12 @@ jobs:
209
211
# run: |
210
212
# # provide write access to user nobody
211
213
# chmod --recursive 777 .
212
- # cd archlinux
214
+ # cd build/ archlinux
213
215
# sudo --user=nobody --preserve-env=PACKAGE_VERSION makepkg --syncdeps --noconfirm --skipinteg --noprogressbar
214
216
# - name: deploy
215
217
# run: |
216
218
# echo "${{ secrets.MYCI_REPO_SSH_KEY }}" > repo_key_rsa && chmod 600 repo_key_rsa
217
- # myci-deploy-pacman-ssh.sh --server gagis.hopto.org --key repo_key_rsa --repo cppfw/archlinux/${{ matrix.arch }} --database cppfw archlinux/$PACKAGE_NAME-*.pkg.*
219
+ # myci-deploy-pacman-ssh.sh --server gagis.hopto.org --key repo_key_rsa --repo cppfw/archlinux/${{ matrix.arch }} --database cppfw build/ archlinux/$PACKAGE_NAME-*.pkg.*
218
220
# if: startsWith(github.ref, 'refs/tags/')
219
221
# #### macosx #####
220
222
macosx :
@@ -287,7 +289,7 @@ jobs:
287
289
uses : myci-actions/checkout@main
288
290
- name : set PACKAGE_VERSION
289
291
uses : myci-actions/export-env-var@main
290
- with : {name: PACKAGE_VERSION, value: $(myci-deb-version.sh debian/changelog )}
292
+ with : {name: PACKAGE_VERSION, value: $(myci-deb-version.sh)}
291
293
- name : add cocoapods repo
292
294
run :
pod repo add --silent cppfw https://[email protected] /cppfw/cocoapods-repo.git
293
295
- name : install deps
@@ -308,7 +310,7 @@ jobs:
308
310
- name : deploy
309
311
run : |
310
312
echo "${{ secrets.MYCI_REPO_SSH_KEY }}" > repo_key_rsa && chmod 600 repo_key_rsa
311
- myci-deploy-cocoapods-ssh.sh --repo cppfw --version $PACKAGE_VERSION --server gagis.hopto.org --key repo_key_rsa --generic-repo cppfw/cocoapods --package $PACKAGE_NAME-$PACKAGE_VERSION.zip cocoapods/$PACKAGE_NAME.podspec.in
313
+ myci-deploy-cocoapods-ssh.sh --repo cppfw --version $PACKAGE_VERSION --server gagis.hopto.org --key repo_key_rsa --generic-repo cppfw/cocoapods --package $PACKAGE_NAME-$PACKAGE_VERSION.zip build/ cocoapods/$PACKAGE_NAME.podspec.in
312
314
if : startsWith(github.ref, 'refs/tags/')
313
315
# #### android #####
314
316
android :
@@ -326,15 +328,15 @@ jobs:
326
328
uses : myci-actions/checkout@main
327
329
- name : set PACKAGE_VERSION
328
330
uses : myci-actions/export-env-var@main
329
- with : {name: PACKAGE_VERSION, value: $(myci-deb-version.sh debian/changelog )}
331
+ with : {name: PACKAGE_VERSION, value: $(myci-deb-version.sh)}
330
332
- name : build
331
333
run : |
332
- cd android
334
+ cd build/ android
333
335
./gradlew copy_aar --warning-mode all
334
336
myci-apply-version.sh --version $PACKAGE_VERSION *.pom.in
335
337
myci-apply-version.sh --version $PACKAGE_VERSION *.aar.in --filename-only
336
338
- name : deploy
337
- run : myci-deploy-maven-nexus.sh --base-url https://gagis.hopto.org/nexus --repo android android/$PACKAGE_NAME-$PACKAGE_VERSION.aar
339
+ run : myci-deploy-maven-nexus.sh --base-url https://gagis.hopto.org/nexus --repo android build/ android/$PACKAGE_NAME-$PACKAGE_VERSION.aar
338
340
if : startsWith(github.ref, 'refs/tags/')
339
341
# #### msys2 #####
340
342
msys2 :
@@ -376,17 +378,17 @@ jobs:
376
378
- name : git clone
377
379
uses : myci-actions/checkout@main
378
380
- name : prepare pacman package
379
- run : myci-apply-version.sh --version $(myci-deb-version.sh debian/changelog) msys2/PKGBUILD.in
381
+ run : myci-apply-version.sh build/ msys2/PKGBUILD.in
380
382
- name : build
381
383
# to make makepkg-mingw build only one architecture we need to set the MINGW_ARCH
382
384
env : {MINGW_ARCH: '${{ matrix.repo }}'}
383
385
run : |
384
- cd msys2
386
+ cd build/ msys2
385
387
PKGEXT='.pkg.tar.xz' makepkg-mingw --syncdeps --noconfirm --skipinteg
386
388
- name : deploy
387
389
run : |
388
390
echo "${{ secrets.MYCI_REPO_SSH_KEY }}" > repo_key_rsa && chmod 600 repo_key_rsa
389
- for f in $(find msys2 -name "mingw-w64-${{ matrix.arch }}-$PACKAGE_NAME-*-any.pkg.*"); do
391
+ for f in $(find build/ msys2 -name "mingw-w64-${{ matrix.arch }}-$PACKAGE_NAME-*-any.pkg.*"); do
390
392
myci-deploy-pacman-ssh.sh --server gagis.hopto.org --key repo_key_rsa --repo cppfw/msys2/${{ matrix.repo }} --database cppfw_${{ matrix.repo }} $f
391
393
done
392
394
if : startsWith(github.ref, 'refs/tags/')
@@ -550,12 +552,12 @@ jobs:
550
552
uses : myci-actions/checkout@main
551
553
- name : set PACKAGE_VERSION
552
554
uses : myci-actions/export-env-var@main
553
- with : {name: PACKAGE_VERSION, value: $(myci-deb-version.sh debian/changelog )}
555
+ with : {name: PACKAGE_VERSION, value: $(myci-deb-version.sh)}
554
556
if : startsWith(github.ref, 'refs/tags/')
555
557
- name : build
556
558
run : |
557
559
conan remote add cppfw $MYCI_CONAN_REMOTE
558
- conan create conan --build=missing --user $MYCI_CONAN_USER --channel main --version $PACKAGE_VERSION
560
+ conan create build/ conan --build=missing --user $MYCI_CONAN_USER --channel main --version $PACKAGE_VERSION
559
561
- name : deploy conan package
560
562
run : |
561
563
conan remote login --password $MYCI_CONAN_PASSWORD cppfw $MYCI_CONAN_USER
@@ -603,12 +605,12 @@ jobs:
603
605
sed -i -E "s/compiler.cppstd=.*$/compiler.cppstd=17/g" ~/.conan2/profiles/default
604
606
- name : set PACKAGE_VERSION
605
607
uses : myci-actions/export-env-var@main
606
- with : {name: PACKAGE_VERSION, value: $(myci-deb-version.sh debian/changelog )}
608
+ with : {name: PACKAGE_VERSION, value: $(myci-deb-version.sh)}
607
609
if : startsWith(github.ref, 'refs/tags/')
608
610
- name : build
609
611
run : |
610
612
conan remote add cppfw $MYCI_CONAN_REMOTE
611
- conan create conan --build=missing --user $MYCI_CONAN_USER --channel main --version $PACKAGE_VERSION
613
+ conan create build/ conan --build=missing --user $MYCI_CONAN_USER --channel main --version $PACKAGE_VERSION
612
614
- name : deploy conan package
613
615
run : |
614
616
conan remote login --password $MYCI_CONAN_PASSWORD cppfw $MYCI_CONAN_USER
@@ -649,13 +651,13 @@ jobs:
649
651
submodules : false
650
652
- name : set PACKAGE_VERSION
651
653
uses : myci-actions/export-env-var@main
652
- with : {name: PACKAGE_VERSION, value: $(myci-deb-version.sh debian/changelog )}
654
+ with : {name: PACKAGE_VERSION, value: $(myci-deb-version.sh)}
653
655
if : startsWith(github.ref, 'refs/tags/')
654
656
- name : build
655
657
run : |
656
658
conan remote add cppfw $MYCI_CONAN_REMOTE
657
659
# NOTE: specifying empty test folder to skip the test stage
658
- conan create conan --profile:build default --profile:host emscripten/conan.profile --build=missing --user $MYCI_CONAN_USER --channel main --version $PACKAGE_VERSION --test-folder ""
660
+ conan create build/ conan --profile:build default --profile:host build/ emscripten/conan.profile --build=missing --user $MYCI_CONAN_USER --channel main --version $PACKAGE_VERSION --test-folder ""
659
661
- name : deploy conan package
660
662
run : |
661
663
conan remote login --password $MYCI_CONAN_PASSWORD cppfw $MYCI_CONAN_USER
0 commit comments