forked from sailfishos-patches/patchmanager
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update / Overhaul CI configuration (sailfishos-patches#330)
* Update / Overhaul CI configuration * Create ci_sfos3.4.0-i486.yml * Update and rename ci-sfos3.4.0.yml to ci_sfos3.4.0-armv7hl.yml * Create ci_sfos4.0.1-aarch64.yml * Create ci_sfos4.4.0-aarch64-armv7hl-i486.yml * Update ci_sfos4.0.1-aarch64.yml * Update ci_sfos4.0.1-aarch64.yml * Update ci_sfos3.4.0-armv7hl.yml * Introduce caching of SDK images * Introduce caching of SDK images * Introduce caching of SDK images * Introduce caching of SDK images * Fix * Raise timeout for builds triggered by a git tag * Raise timeout for builds triggered by a git tag * Raise timeout for builds triggered by a git tag * Indent * Use "latest" * Missed "latest" * indent * Indent * Indent * Insert two "-" in comments * Address more "unappllies" * Set base image to ubuntu-22.04 … because ubuntu-latest is a moving target and the GitHub-action scripts are versioned any way, hence manual version updates are inevitable. * Set base image to ubuntu-22.04 … because ubuntu-latest is a moving target and the GitHub-action scripts are versioned any way, hence manual version updates are inevitable. * More elaborate comments * Set base image to ubuntu-22.04 … because ubuntu-latest is a moving target and the GitHub-action scripts are versioned any way, hence manual version updates are inevitable. * Set base image to ubuntu-22.04 … because ubuntu-latest is a moving target and the GitHub-action scripts are versioned any way, hence manual version updates are inevitable. * Set base image to ubuntu-22.04 … because ubuntu-latest is a moving target and the GitHub-action scripts are versioned any way, hence manual version updates are inevitable. * Omit (ab)use of bash arrays * Shorten comment * Omit (ab)use of bash arrays * Omit (ab)use of bash arrays * Omit (ab)use of bash arrays * Drop last `|| true`, because the scriptlets … (`%pre*`, `%post*`, %trigger*` and `%file*`) are not run with `set -e` (in contrast to main sections `%prep`, `%build` and `%install`), but they shall not return an exit code ≠ 0 (i.e., must not indicate a failure of then whole scriptlet; hence they all conclude with an explicit `exit 0`), otherwise the ongoing RPM transaction might fail and the RPM database may become corrupted (presumably not if the `%pre` scriptlet fails, because the transaction has not started yet, then).
- Loading branch information
Showing
6 changed files
with
210 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: CI on SFOS 3.4.0 (armv7hl) | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- master | ||
- patchmanager3 | ||
|
||
env: | ||
RELEASE: 3.4.0.24 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Prepare | ||
run: mkdir output | ||
|
||
# Caching Docker images is not ready yet, see | ||
# https://github.com/storeman-developers/harbour-storeman-installer/blob/devel/cache-docker-images_github-ci.md | ||
#- name: Cache Docker images of the Sailfish-SDK | ||
# id: cache-sdk | ||
# uses: actions/cache@v3 | ||
# with: | ||
# path: $GITHUB_WORKSPACE/… | ||
# key: cache | ||
|
||
- name: Build armv7hl | ||
# mb2 wants bash: https://github.com/sailfishos/sdk-setup/blob/master/sdk-setup/src/mb2#L1 | ||
run: docker run --rm --privileged -v $PWD:/share coderus/sailfishos-platform-sdk:$RELEASE /bin/bash -c " | ||
mkdir -p build ; | ||
cd build ; | ||
cp -r /share/* . ; | ||
mb2 -t SailfishOS-$RELEASE-armv7hl build --enable-debug ; | ||
sudo cp -r RPMS/*.rpm /share/output" | ||
|
||
- name: Upload build result | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: output-rpms | ||
path: output/ | ||
|
||
- name: Create release | ||
if: contains(github.ref, 'release') | ||
run: | | ||
set -x | ||
assets="" | ||
for asset in output/*.rpm; do | ||
assets="$assets -a $asset" | ||
done | ||
tag_name="${GITHUB_REF##*/}" | ||
hub release create"$assets" -m "$tag_name" "$tag_name" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: CI on SFOS 3.4.0 (i486) | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
env: | ||
RELEASE: 3.4.0.24 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Prepare | ||
run: mkdir output | ||
|
||
# Caching Docker images is not ready yet, see | ||
# https://github.com/storeman-developers/harbour-storeman-installer/blob/devel/cache-docker-images_github-ci.md | ||
#- name: Cache Docker images of the Sailfish-SDK | ||
# id: cache-sdk | ||
# uses: actions/cache@v3 | ||
# with: | ||
# path: $GITHUB_WORKSPACE/… | ||
# key: cache | ||
|
||
- name: Build i486 | ||
# mb2 wants bash: https://github.com/sailfishos/sdk-setup/blob/master/sdk-setup/src/mb2#L1 | ||
run: docker run --rm --privileged -v $PWD:/share coderus/sailfishos-platform-sdk:$RELEASE /bin/bash -c " | ||
mkdir -p build ; | ||
cd build ; | ||
cp -r /share/* . ; | ||
mb2 -t SailfishOS-$RELEASE-i486 build --enable-debug ; | ||
sudo cp -r RPMS/*.rpm /share/output" | ||
|
||
- name: Upload build result | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: output-rpms | ||
path: output/ | ||
|
||
- name: Create release | ||
if: contains(github.ref, 'release') | ||
run: | | ||
set -x | ||
assets="" | ||
for asset in output/*.rpm; do | ||
assets="$assets -a $asset" | ||
done | ||
tag_name="${GITHUB_REF##*/}" | ||
hub release create"$assets" -m "$tag_name" "$tag_name" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: CI on SFOS 4.0.1 (aarch64) | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
env: | ||
RELEASE: 4.0.1.45 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Prepare | ||
run: mkdir output | ||
|
||
# Caching Docker images is not ready yet, see | ||
# https://github.com/storeman-developers/harbour-storeman-installer/blob/devel/cache-docker-images_github-ci.md | ||
#- name: Cache Docker images of the Sailfish-SDK | ||
# id: cache-sdk | ||
# uses: actions/cache@v3 | ||
# with: | ||
# path: $GITHUB_WORKSPACE/… | ||
# key: cache | ||
|
||
- name: Build aarch64 | ||
# mb2 wants bash: https://github.com/sailfishos/sdk-setup/blob/master/sdk-setup/src/mb2#L1 | ||
run: docker run --rm --privileged -v $PWD:/share coderus/sailfishos-platform-sdk:$RELEASE /bin/bash -c " | ||
mkdir -p build ; | ||
cd build ; | ||
cp -r /share/* . ; | ||
mb2 -t SailfishOS-$RELEASE-aarch64 build --enable-debug ; | ||
sudo cp -r RPMS/*.rpm /share/output" | ||
|
||
- name: Upload build result | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: output-rpms | ||
path: output/ | ||
|
||
- name: Create release | ||
if: contains(github.ref, 'release') | ||
run: | | ||
set -x | ||
assets="" | ||
for asset in output/*.rpm; do | ||
assets="$assets -a $asset" | ||
done | ||
tag_name="${GITHUB_REF##*/}" | ||
hub release create"$assets" -m "$tag_name" "$tag_name" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters