forked from manjaro/release-review
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔥 Make use of kernel-info and add arm-images build
- Loading branch information
Showing
8 changed files
with
166 additions
and
137 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,159 @@ | ||
name: build | ||
on: | ||
schedule: | ||
- cron: '30 2 * * 0' | ||
workflow_dispatch: | ||
repository_dispatch: | ||
types: | ||
- iso_profile_update | ||
- image_profile_update | ||
|
||
concurrency: | ||
group: ${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
MATRIX_ROOM_ID: "!XXstZzLEcUVKyTcqCA:matrix.org" | ||
|
||
jobs: | ||
prepare-release: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- id: time | ||
uses: boredland/get-time-action@dbc808befb89eb33fee64f5f4abce4d2a5fa7cfd # tag=2.0.0 | ||
with: | ||
format: 'YYYYMMDDHHmm' | ||
- id: receive | ||
uses: boredland/kernel-info@main | ||
outputs: | ||
release_tag: ${{ steps.time.outputs.time }} | ||
longterm: ${{ steps.receive.outputs.longterm-pkg }} | ||
stable: ${{ steps.receive.outputs.stable-pkg }} | ||
build-image: | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
actions: read | ||
contents: write | ||
needs: [prepare-release] | ||
# we need to continue on error for the experimental builds | ||
continue-on-error: ${{ matrix.experimental }} | ||
name: arm ${{ matrix.edition }} ${{ matrix.branch }} ${{ matrix.device }} | ||
strategy: | ||
matrix: | ||
edition: [minimal, xfce, gnome, kde-plasma] | ||
branch: [stable, testing, unstable] | ||
device: [rpi4] | ||
include: | ||
# we assume all builds are experimental, as arm is in a bad shape overall | ||
- experimental: true | ||
steps: | ||
- name: arm build | ||
uses: manjaro-contrib/action-buildarmimg@main | ||
with: | ||
device: ${{ matrix.device }} | ||
edition: ${{ matrix.edition }} | ||
branch: ${{ matrix.branch }} | ||
release-tag: ${{ needs.prepare-release.outputs.release_tag }} | ||
arm-profiles-repo: https://gitlab.manjaro.org/manjaro-arm/applications/arm-profiles.git | ||
- uses: Tiryoh/[email protected] | ||
id: url | ||
if: failure() | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
job_name: 'arm ${{ matrix.edition }} ${{ matrix.branch }} ${{ matrix.device }}' | ||
- uses: s3krit/[email protected] | ||
if: failure() | ||
with: | ||
room_id: ${{ env.MATRIX_ROOM_ID}} | ||
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} | ||
message: "Error building for **ARM**: [**${{ matrix.edition }}** - **${{ matrix.branch }}** - **${{ matrix.device }}**](${{ steps.url.outputs.html_url }})." | ||
server: "matrix.org" | ||
build-iso: | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
actions: read | ||
contents: write | ||
needs: [prepare-release] | ||
continue-on-error: ${{ matrix.experimental }} | ||
name: x86_64 ${{ matrix.edition }} ${{ matrix.branch }} ${{ matrix.scope }} ${{ matrix.kernel }} | ||
strategy: | ||
matrix: | ||
edition: [kde, kde-dev, xfce, gnome, gnome-next, i3, cinnamon] | ||
branch: [stable, testing, unstable] | ||
scope: [full] | ||
exclude: | ||
- edition: kde | ||
branch: unstable | ||
- edition: kde-dev | ||
branch: stable | ||
- edition: kde-dev | ||
branch: testing | ||
- edition: gnome | ||
branch: unstable | ||
- edition: gnome-next | ||
branch: stable | ||
- edition: gnome-next | ||
branch: testing | ||
include: | ||
# we assume all builds are experimental (and exclude the ones the _must_ pass) | ||
- experimental: true | ||
# we use the longterm kernel by default | ||
- kernel: ${{ needs.prepare-release.outputs.longterm }} | ||
# all unstable builds are using the latest stable kernel | ||
- branch: unstable | ||
kernel: ${{ needs.prepare-release.outputs.stable }} | ||
# as kde, xfce and gnome are the "official" editions, their builds are not experimental | ||
# - edition: kde | ||
# branch: stable | ||
# experimental: false | ||
# - edition: xfce | ||
# branch: stable | ||
# experimental: false | ||
# - edition: gnome | ||
# branch: stable | ||
# experimental: false | ||
steps: | ||
- name: x86_64 build | ||
uses: manjaro/manjaro-iso-action@main | ||
with: | ||
iso-profiles-repo: https://gitlab.manjaro.org/profiles-and-settings/iso-profiles.git | ||
edition: ${{ matrix.edition }} | ||
branch: ${{ matrix.branch }} | ||
scope: ${{ matrix.scope }} | ||
kernel: ${{ matrix.kernel }} | ||
release-tag: ${{ needs.prepare-release.outputs.release_tag }} | ||
- uses: Tiryoh/[email protected] | ||
id: url | ||
if: failure() | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
job_name: 'x86_64 ${{ matrix.edition }} ${{ matrix.branch }} ${{ matrix.scope }} ${{ matrix.kernel }}' | ||
- uses: s3krit/[email protected] | ||
if: failure() | ||
with: | ||
room_id: ${{ env.MATRIX_ROOM_ID}} | ||
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} | ||
message: "Error building for **x86**: [**${{ matrix.edition }}** - **${{ matrix.branch }}** - **${{ matrix.kernel }}**](${{ steps.url.outputs.html_url }})." | ||
server: "matrix.org" | ||
announce: | ||
runs-on: ubuntu-22.04 | ||
needs: [build-iso, build-image, prepare-release] | ||
if: ${{ failure() != true && cancelled() != true }} | ||
steps: | ||
- uses: s3krit/[email protected] | ||
with: | ||
room_id: ${{ env.MATRIX_ROOM_ID}} | ||
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} | ||
message: "Successfully built Manjaro ARM and x86_64 images for [${{ needs.prepare-release.outputs.release_tag }}](${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ needs.prepare-release.outputs.release_tag }})." | ||
rollback: | ||
runs-on: ubuntu-22.04 | ||
needs: [build-iso, build-image, prepare-release] | ||
if: ${{ failure() || cancelled() }} | ||
steps: | ||
- name: rollback | ||
run: | | ||
echo ${{ github.token }} | gh auth login --with-token | ||
ASSET_COUNT=$(gh release view ${{ needs.prepare-release.outputs.release_tag }} --json "assets" --jq '.assets | length') | ||
if [ "$ASSET_COUNT" -gt "2" ]; then exit 0;fi | ||
gh release delete ${{ needs.prepare-release.outputs.release_tag }} -y --repo ${{ github.repository }} | ||
git push --delete origin ${{ needs.prepare-release.outputs.release_tag }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,29 +1,22 @@ | ||
# Manjaro Editions | ||
|
||
[](https://github.com/manjaro/release-review/actions) | ||
|
||
## description | ||
## Description | ||
|
||
Release-Review ISOs of Manjaro Linux | ||
Review-Images of Manjaro Linux | ||
|
||
## where can I download an iso? | ||
## Where can I download an iso? | ||
|
||
Images are built and uploaded in a relatively regular interval to [github releases](https://github.com/manjaro/release-review/releases) | ||
|
||
## sources | ||
|
||
- [iso profile](https://gitlab.manjaro.org/profiles-and-settings/iso-profiles/-/tree/master/manjaro) | ||
- [plasma settings](https://gitlab.manjaro.org/profiles-and-settings/manjaro-kde-settings) | ||
- [gnome settings](https://gitlab.manjaro.org/profiles-and-settings/manjaro-gnome-settings) | ||
- [xfce settings](https://gitlab.manjaro.org/profiles-and-settings/manjaro-xfce-settings) | ||
## Sources | ||
|
||
## building | ||
|
||
1. check out the iso profile | ||
2. `buildiso -p xfce -b stable` | ||
- [iso profiles](https://gitlab.manjaro.org/profiles-and-settings/iso-profiles) | ||
|
||
## credentials | ||
|
||
``` | ||
```sh | ||
user: manjaro | ||
password: manjaro | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.