Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

fix(f39): Build from main instead of nokmods #14

Merged
merged 3 commits into from
Oct 13, 2023
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
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
fail-fast: false
matrix:
image_flavor: [-nokmods]
image_flavor: [-nokmods, -main]
base_name: [asus]
base_image_name:
- silverblue
Expand All @@ -41,6 +41,12 @@ jobs:
is_latest_version: true
is_stable_version: true
exclude:
- image_flavor: -nokmods
major_version: 39
- image_flavor: -main
major_version: 38
- image_flavor: -main
major_version: 37
- base_image_name: vauxite
major_version: 39
- base_image_name: onyx
Expand All @@ -56,7 +62,7 @@ jobs:
- name: Matrix Variables
run: |
echo "BASE_IMAGE_NAME=${{ matrix.base_image_name }}" >> $GITHUB_ENV
if [[ "${{ matrix.image_flavor }}" =~ "nokmods" ]]; then
if [[ "${{ matrix.image_flavor }}" =~ "nokmods" || "${{ matrix.image_flavor }}" =~ "main" ]]; then
echo "IMAGE_NAME=${{ format('{0}-{1}', matrix.base_image_name, matrix.base_name) }}" >> $GITHUB_ENV
else
echo "IMAGE_NAME=${{ format('{0}-{1}{2}', matrix.base_image_name, matrix.base_name, matrix.image_flavor) }}" >> $GITHUB_ENV
Expand Down
5 changes: 1 addition & 4 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ RUN wget https://copr.fedorainfracloud.org/coprs/lukenukem/asus-linux/repo/fedor
kernel-core \
kernel-modules \
kernel-modules-core \
kernel-modules-extra \
kernel-devel \
kernel-devel-matched && \
kernel-modules-extra && \
git clone https://gitlab.com/asus-linux/firmware.git --depth 1 /tmp/asus-firmware && \
cp -rf /tmp/asus-firmware/* /usr/lib/firmware/ && \
rm -rf /tmp/asus-firmware
Expand All @@ -38,7 +36,6 @@ COPY --from=ghcr.io/ublue-os/akmods:asus-${FEDORA_MAJOR_VERSION} /rpms /tmp/akmo

# Only run if FEDORA_MAJOR_VERSION is not 39
RUN if [ ${FEDORA_MAJOR_VERSION} -lt 39 ]; then \
rpm-ostree install /tmp/akmods-rpms/ublue-os/ublue-os-akmods-addons*.rpm && \
for REPO in $(rpm -ql ublue-os-akmods-addons|grep ^"/etc"|grep repo$); do \
echo "akmods: enable default entry: ${REPO}" && \
sed -i '0,/enabled=0/{s/enabled=0/enabled=1/}' ${REPO} \
Expand Down