Skip to content

Commit

Permalink
ci(actions): +25.04-plucky.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
2moe committed Oct 20, 2024
1 parent 9969e89 commit 0270d1e
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 19 deletions.
36 changes: 29 additions & 7 deletions .github/update-yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,28 +53,39 @@ if [[ $OS == ubuntu ]] {
# quantal "12.10"
# raring "13.04"
# saucy "13.10"
trusty "14.04"
#
# trusty "14.04"
#
# utopic "14.10"
# vivid "15.04"
# wily "15.10"
xenial "16.04"
#
# xenial "16.04"
#
# yakkety "16.10"
# zesty "17.04"
# artful "17.10"
bionic "18.04"
#
# bionic "18.04"
#
# cosmic "18.10"
# disco "19.04"
# eoan "19.10"
focal "20.04"
#
# focal "20.04"
#
# groovy "20.10"
# hirsute "21.04"
# impish "21.10"
jammy "22.04"
#
# jammy "22.04"
#
# kinetic "22.10"
# lunar "23.04"
mantic "23.10"
# mantic "23.10"
noble "24.04"
oracular "24.10"
plucky "25.04"
)
}
# --------------
Expand All @@ -91,6 +102,16 @@ debug() {
io::Error::not_found() {
error "I/O Error, '$1' was not found."
}

# -> SedEnum("gsed"|"sed")
# if is_macOS {"gsed"} else {"sed"}
get_sed_cmd() {
case $(uname -s) {
# macOS
(Darwin) print gsed ;;
(*) print sed ;;
}
}
# --------------
debug $(local -p ver_map)

Expand Down Expand Up @@ -173,5 +194,6 @@ for series ver (${(kv)ver_map}) {
args+=$tmpl

debug "%F{green}sed %f$args"
sed $args > $new_file

$(get_sed_cmd) $args > $new_file
}
10 changes: 7 additions & 3 deletions .github/workflows/24.04-noble.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: build (24.04, Noble)
on: { "push": { "paths": [".github/workflows/24.04-noble.yml"] } }
# on: { "schedule": [{ "cron": "24 4 */3 * *" }] }
# auto-task.build-time = ?
on:
{
"push": { "paths": [".github/workflows/24.04-noble.yml"] },
"schedule": [{ "cron": "24 4 */7 * *" }],
}

env:
DEBIAN_FRONTEND: noninteractive
Expand Down Expand Up @@ -63,7 +67,7 @@ jobs:
if: steps.build_and_save_cache.outcome == 'failure'
run: sh run.sh --compatibility-mode

# --------------------------------------
# --------------------------------------
docker:
needs: build
runs-on: ubuntu-latest
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/24.10-oracular.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: build (24.10, Oracular)
on: { "push": { "paths": [".github/workflows/24.10-oracular.yml"] } }
# on: { "schedule": [{ "cron": "24 10 */5 * *" }] }
#
# auto-task.build-time = ?
on:
{
"push": { "paths": [".github/workflows/24.10-oracular.yml"] },
"schedule": [{ "cron": "24 10 */6 * *" }],
}

env:
DEBIAN_FRONTEND: noninteractive
Expand Down
45 changes: 39 additions & 6 deletions .github/workflows/devel.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: build (Devel)
# auto-task.build-time = 2024-02-20 04:53:46.579903159+00:00
on: { "push": { "paths": [".github/workflows/devel.yml"] } }
# on: { "push": { "paths": [".github/workflows/devel.yml"] } }

env:
DEBIAN_FRONTEND: noninteractive
Expand All @@ -14,13 +14,23 @@ jobs:
strategy:
fail-fast: true
matrix: ${{ fromJson(vars.DEVEL_JSON).matrix }}
# matrix:
# arch:
# - amd64
# - arm64
runs-on: ubuntu-latest

defaults:
run:
shell: zsh --pipefail -fex {0}
steps:
- name: install zsh
shell: sh -e {0}
run: ${{ vars.INSTALL_ZSH }}

- name: preparations
run: |
${{vars.INSTALL_QEMU_AND_DEBOOTSTRAP}}
${{vars.GET_CTR_CMD}}
${{vars.INSTALL_QEMU_AND_DEBOOTSTRAP}}
- name: Login to REG
uses: docker/login-action@v3
Expand All @@ -29,8 +39,31 @@ jobs:
username: ${{vars.REG_USER}}
password: ${{ secrets.DEB_UUU_TOKEN }}

- name: download & repack rootfs & save cache
run: ${{env.BUILD_CMD}} --arch ${{matrix.arch}} --obtain --repack --zstd-level ${{env.ZSTD_LV}} --save-cache
- name: build & repack rootfs & save cache
continue-on-error: true
id: build_and_save_cache
run: |
extra_args=(
--arch
${{matrix.arch}}
--obtain
--repack
--zstd-level ${{env.ZSTD_LV}}
--save-cache
)
case ${{matrix.arch}} {
(amd64) extra_args+=(
--auto-add-extra-suites
)
}
print -R ${{env.BUILD_CMD}} $extra_args \"\$@\" > run.sh
${{env.BUILD_CMD}} $extra_args
- name: compatibility-mode
if: steps.build_and_save_cache.outcome == 'failure'
run: sh run.sh --compatibility-mode

# --------------------------------------
docker:
needs: build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -92,7 +125,7 @@ jobs:
run: echo RELEASE_TAG=$(${{env.BUILD_CMD}} --release-tag) >>$GITHUB_ENV

- name: release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
fail_on_unmatched_files: true
tag_name: ${{env.RELEASE_TAG}}
Expand Down
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
| version | codename | created | release | eol |
| ---------------------------------------------------------------- | --------------- | ---------- | ---------- | ---------- |
| [24.10](https://github.com/2cd/ubuntu-museum/releases/tag/24.10) | Oracular Oriole | 2024-04-25 | 2024-10-10 | 2025-07-10 |
| [25.04](https://github.com/2cd/ubuntu-museum/releases/tag/25.04) | Plucky Puffin | 2024-10-10 | 2025-04-17 | 2026-01-15 |

---

Expand Down
5 changes: 5 additions & 0 deletions ci/os.ron
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@
archs: "amd64 arm64 armhf i386 ppc64el riscv64 s390x",
matrix: (arch: ["amd64", "arm64", "armhf", "i386", "ppc64el", "riscv64", "s390x"]),
),
"plucky": (
ver: "25.04",
archs: "amd64 arm64 armhf i386 ppc64el riscv64 s390x",
matrix: (arch: ["amd64", "arm64", "armhf", "i386", "ppc64el", "riscv64", "s390x"]),
),
"precise": (
ver: "12.04",
archs: "amd64 armel armhf i386 powerpc",
Expand Down

0 comments on commit 0270d1e

Please sign in to comment.