Skip to content

Commit 1f645b4

Browse files
committed
GitHub Actions - test manual / auto build releases - upload to artefact
1 parent 5688726 commit 1f645b4

File tree

2 files changed

+46
-14
lines changed

2 files changed

+46
-14
lines changed

.github/workflows/manual-nightly.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
with:
4545
key: ${{ matrix.cfg.target }}
4646
- name: update submodules
47-
run: ./scripts/dev/init_submodules.sh
47+
run: ./scripts/dev/init_submodules.sh
4848
- name: Install dependencies
4949
run: ./scripts/ci/${{matrix.cfg.target}}/install.sh;
5050
- name: Download libs
@@ -56,12 +56,12 @@ jobs:
5656
run: ls -lah out/
5757
- name: Test Artefact zip
5858
run: |
59-
tar -cjf out/mega_artefact.tar.bz2 -C out $(echo ${{ steps.createpackage.outputs.FILES_OUT }} | tr ' ' '\n' | sed 's|^out/||')
59+
tar -cjf out/manual-mega_artefact.tar.bz2 -C out $(echo ${{ steps.createpackage.outputs.FILES_OUT }} | tr ' ' '\n' | sed 's|^out/||')
6060
- name: Upload binaries as Artefact
6161
uses: actions/upload-artifact@v4
6262
with:
6363
name: openFrameworks-all-artefact-${{ env.TARGET }}-${{ matrix.bundle }}
64-
path: out/mega_artefact.tar.bz2
64+
path: out/manual-mega_artefact.tar.bz2
6565
retention-days: 1
6666
# - name: Update Release
6767
# uses: IsaacShelton/update-existing-release@v1.3.4

.github/workflows/nightly-linux64.yml

+43-11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
11
name: nightly-linux64
22

3+
34
on:
4-
schedule:
5-
- cron: "0 6 * * *"
5+
push:
6+
paths-ignore:
7+
- '**/README.md'
8+
pull_request:
9+
paths-ignore:
10+
- '**/README.md'
11+
# on:
12+
# workflow_dispatch:
13+
# inputs:
14+
# release:
15+
# description: 'release'
16+
# required: true
17+
# default: 'nightly'
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
22+
# on:
23+
# schedule:
24+
# - cron: "0 6 * * *"
625

726
env:
827
ccache: ccache
@@ -34,17 +53,30 @@ jobs:
3453
key: ${{ matrix.cfg.target }}
3554
- name: Install dependencies
3655
run: ./scripts/ci/$TARGET/install.sh;
56+
- name: update submodules
57+
run: ./scripts/dev/init_submodules.sh
3758
- name: Download libs
3859
run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}};
3960
- name: Create Package
40-
run: scripts/ci/package_builds.sh;
61+
run: scripts/ci/package_builds.sh ${{ github.event.inputs.release }};
4162
id: createpackage
42-
- name: Update Release
43-
uses: IsaacShelton/update-existing-release@v1.3.4
63+
- name: List output directory
64+
run: ls -lah out/
65+
- name: Test Artefact zip
66+
run: |
67+
tar -cjf out/mega_artefact.tar.bz2 -C out $(echo ${{ steps.createpackage.outputs.FILES_OUT }} | tr ' ' '\n' | sed 's|^out/||')
68+
- name: Upload binaries as Artefact
69+
uses: actions/upload-artifact@v4
4470
with:
45-
token: ${{ secrets.GITHUB_TOKEN }}
46-
tag: nightly
47-
release: nightly
48-
prerelease: false
49-
replace: true
50-
files: ${{ steps.createpackage.outputs.FILES_OUT }}
71+
name: openFrameworks-all-artefact-${{ env.TARGET }}-${{ matrix.bundle }}
72+
path: out/mega_artefact.tar.bz2
73+
retention-days: 1
74+
# - name: Update Release
75+
# uses: IsaacShelton/update-existing-release@v1.3.4
76+
# with:
77+
# token: ${{ secrets.GITHUB_TOKEN }}
78+
# tag: nightly
79+
# release: nightly
80+
# prerelease: false
81+
# replace: true
82+
# files: ${{ steps.createpackage.outputs.FILES_OUT }}

0 commit comments

Comments
 (0)