Skip to content

[actions] - Nightly to generate latest, corrections on runners parameters #8209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions .github/workflows/nightly-ok.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,25 @@ name: nightly-linux64

on:
schedule:
- cron: "0 6 * * *"
- cron: "0 6 * * *"
workflow_dispatch:
inputs:
release:
description: 'release'
required: true
default: 'latest'
release:
description: 'release'
required: true
default: 'latest'
env:
ccache: ccache
RELEASE: latest

jobs:
build-nightly-ok:
runs-on: ubuntu-24.04
if: github.repository == 'openframeworks/openFrameworks' && github.ref == 'refs/heads/master'
strategy:
matrix:
cfg:
- {target: linux64, libs: 64gcc6}
matrix:
cfg:
- {target: linux64, libs: 64gcc6}
env:
TARGET: ${{matrix.cfg.target}}
steps:
Expand All @@ -44,16 +45,16 @@ jobs:
- name: Download libs
run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}};
- name: Create Package
run: scripts/ci/package_builds.sh ${{ github.event.inputs.release }};
run: ./scripts/ci/package_builds.sh ${{ github.event.inputs.release }};
id: createpackage
- name: List output directory
run: ls -lah out/
- name: Update Release
uses: IsaacShelton/update-existing-release@v1.3.4
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: nightly
release: nightly
prerelease: false
replace: true
files: ${{ steps.createpackage.outputs.FILES_OUT }}
token: ${{ secrets.GITHUB_TOKEN }}
tag: nightly
release: nightly
prerelease: false
replace: true
files: ${{ steps.createpackage.outputs.FILES_OUT }}
8 changes: 4 additions & 4 deletions .github/workflows/of.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# echo "RELEASE=latest" >> $GITHUB_ENV
# fi
- name: Download libs
run: ./scripts/$TARGET/download_libs.sh
run: ./scripts/$TARGET/download_libs.sh -t $RELEASE
- name: Install dependencies
run: ./scripts/ci/$TARGET/install.sh
- name: Build
Expand Down Expand Up @@ -199,7 +199,7 @@ jobs:
# echo "RELEASE=latest" >> $GITHUB_ENV
# fi
- name: Download libs
run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}} -t $RELEASE;
run: ./scripts/linux/download_libs.sh -t $RELEASE -a ${{matrix.cfg.libs}}
- name: Install dependencies
run: ./scripts/ci/linuxrpi/install.sh;
- name: LS
Expand Down Expand Up @@ -290,7 +290,7 @@ jobs:
key: ${{ matrix.cfg.target }}-${{ matrix.cfg.libs }}

- name: Download libs
run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}} -t $RELEASE;
run: ./scripts/linux/download_libs.sh -t $RELEASE -a ${{matrix.cfg.libs}}
- name: Install dependencies
run: ./scripts/ci/$TARGET/install.sh;
- name: Build
Expand Down Expand Up @@ -330,7 +330,7 @@ jobs:
# key: ${{ matrix.cfg.target }}-${{ matrix.cfg.libs }}

# - name: Download libs
# run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}};
# run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}}
# - name: Install dependencies
# run: ./scripts/ci/$TARGET/install.sh;
# - name: Build
Expand Down
6 changes: 3 additions & 3 deletions scripts/ci/package_builds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ mkdir -p $OUTPUT_FOLDER
RELEASE="${RELEASE:-latest}"

lastversion=$(date +%Y%m%d)
if [ -n "$1" ] && [ "$1" != "nightly" ]; then
lastversion=$1
fi
# if [ -n "$1" ] && [ "$1" != "nightly" ]; then
# lastversion=$1
# fi
echo "##[endgroup]"

echo "##[group]submodule update and pull"
Expand Down
Loading