|
| 1 | +name: Rhino Linux Image Generation (Meta) [Legacy Workflow] |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch |
| 5 | + |
| 6 | +jobs: |
| 7 | + build_amd64: |
| 8 | + runs-on: buildjet-4vcpu-ubuntu-2204 |
| 9 | + steps: |
| 10 | + - uses: actions/checkout@v4 |
| 11 | + |
| 12 | + - name: Install needed packages |
| 13 | + run: | |
| 14 | + sudo rm -rf /var/lib/apt/lists/* |
| 15 | + sudo sed -i 's/jammy/mantic/g' /etc/apt/sources.list |
| 16 | + sudo apt-get update && sudo apt-get install --reinstall debootstrap mtools dosfstools qemu-user-static binfmt-support dpkg-dev -y |
| 17 | + sudo ln -sfn /usr/share/debootstrap/scripts/gutsy /usr/share/debootstrap/scripts/noble |
| 18 | + sudo dpkg -i debs/live-build_*_all.deb |
| 19 | + sudo mv /usr/share/debootstrap/functions functions |
| 20 | + sudo patch -i 0002-remove-WRONGSUITE-error.patch |
| 21 | + sudo mv functions /usr/share/debootstrap/functions |
| 22 | + sudo cp binary_grub-efi /usr/lib/live/build/binary_grub-efi |
| 23 | +
|
| 24 | + - name: Make scripts executable |
| 25 | + run: chmod -R +x build.sh etc/auto/config etc/terraform.conf etc/ |
| 26 | + |
| 27 | + - name: Build ISO |
| 28 | + run: | |
| 29 | + sudo ./build.sh etc/terraform.conf |
| 30 | + echo "ISOX64=$(cd builds/amd64; ls *.iso)" >> $GITHUB_ENV |
| 31 | +
|
| 32 | + |
| 33 | + with: |
| 34 | + name: ${{ env.ISOX64 }} |
| 35 | + path: builds/amd64/${{ env.ISOX64 }} |
| 36 | + |
| 37 | + build_arm64: |
| 38 | + runs-on: buildjet-4vcpu-ubuntu-2204-arm |
| 39 | + steps: |
| 40 | + - uses: actions/checkout@v4 |
| 41 | + |
| 42 | + - name: Install needed packages |
| 43 | + run: | |
| 44 | + sudo rm -rf /var/lib/apt/lists/* |
| 45 | + sudo sed -i 's/jammy/mantic/g' /etc/apt/sources.list |
| 46 | + sudo apt-get update && sudo apt-get install --reinstall debootstrap mtools dosfstools qemu-user-static binfmt-support dpkg-dev -y |
| 47 | + sudo ln -sfn /usr/share/debootstrap/scripts/gutsy /usr/share/debootstrap/scripts/noble |
| 48 | + sudo dpkg -i debs/live-build_*_all.deb |
| 49 | + sudo mv /usr/share/debootstrap/functions functions |
| 50 | + sudo patch -i 0002-remove-WRONGSUITE-error.patch |
| 51 | + sudo mv functions /usr/share/debootstrap/functions |
| 52 | + sudo cp binary_grub-efi /usr/lib/live/build/binary_grub-efi |
| 53 | + |
| 54 | + - name: Make scripts executable |
| 55 | + run: chmod -R +x build.sh etc/auto/config etc/terraform.conf etc/ |
| 56 | + |
| 57 | + - name: Build ISO |
| 58 | + run: | |
| 59 | + sudo ./build.sh etc/terraform.conf |
| 60 | + echo "ISOA64=$(cd builds/arm64; ls *.iso)" >> $GITHUB_ENV |
| 61 | +
|
| 62 | + |
| 63 | + with: |
| 64 | + name: ${{ env.ISOA64 }} |
| 65 | + path: builds/arm64/${{ env.ISOA64 }} |
| 66 | + |
| 67 | + build_pine_tarball: |
| 68 | + runs-on: buildjet-4vcpu-ubuntu-2204-arm |
| 69 | + steps: |
| 70 | + - uses: actions/checkout@v4 |
| 71 | + with: |
| 72 | + ref: 'pinephone' |
| 73 | + |
| 74 | + - name: Install needed packages |
| 75 | + run: | |
| 76 | + sudo rm -rf /etc/apt/sources.list.d/microsoft-prod.list |
| 77 | + sudo rm -rf /var/lib/apt/lists/* |
| 78 | + sudo sed -i 's/jammy/mantic/g' /etc/apt/sources.list |
| 79 | + sudo apt-get update && sudo apt-get install debootstrap mtools dosfstools qemu-user-static binfmt-support dpkg-dev -y |
| 80 | + sudo ln -sfn /usr/share/debootstrap/scripts/gutsy /usr/share/debootstrap/scripts/noble |
| 81 | + sudo dpkg -i debs/live-build_*_all.deb |
| 82 | + sudo mv /usr/share/debootstrap/functions functions |
| 83 | + sudo patch -i 0002-remove-WRONGSUITE-error.patch |
| 84 | + sudo mv functions /usr/share/debootstrap/functions |
| 85 | + sudo cp binary_grub-efi /usr/lib/live/build/binary_grub-efi |
| 86 | + sudo cp binary_rootfs /usr/lib/live/build/binary_rootfs |
| 87 | + |
| 88 | + - name: Make scripts executable |
| 89 | + run: chmod -R +x build.sh etc/auto/config etc/terraform.conf etc/ |
| 90 | + |
| 91 | + - name: Build tarball |
| 92 | + run: sudo ./build.sh etc/terraform.conf |
| 93 | + |
| 94 | + |
| 95 | + with: |
| 96 | + path: binary/ |
| 97 | + key: tar-pine-${{ github.run_id }} |
| 98 | + |
| 99 | + deploy_pine: |
| 100 | + needs: build_pine_tarball |
| 101 | + runs-on: buildjet-4vcpu-ubuntu-2204 |
| 102 | + steps: |
| 103 | + - uses: actions/checkout@v4 |
| 104 | + with: |
| 105 | + ref: 'pinephone' |
| 106 | + |
| 107 | + |
| 108 | + with: |
| 109 | + path: binary/ |
| 110 | + key: tar-pine-${{ github.run_id }} |
| 111 | + |
| 112 | + - name: Deploy to partition |
| 113 | + run: source ./etc/terraform.conf && VER="${VERSION}${SUBVER}" && sudo ./debos-docker --privileged -t image:"Rhino-Linux-${VER}-pinephone-unified.img" -m 10G pinephone-unified.yaml |
| 114 | + |
| 115 | + - name: Place output folder |
| 116 | + run: sudo mkdir -p builds/pine |
| 117 | + |
| 118 | + - name: Move to output folder and compress |
| 119 | + run: | |
| 120 | + sudo mv Rhino*unified.img builds/pine/ |
| 121 | + sudo xz -v builds/pine/Rhino*unified.img |
| 122 | + echo "IMGPP=$(cd builds/pine; ls *.img.xz)" >> $GITHUB_ENV |
| 123 | +
|
| 124 | + |
| 125 | + with: |
| 126 | + name: ${{ env.IMGPP }} |
| 127 | + path: builds/pine/${{ env.IMGPP }} |
| 128 | + |
| 129 | + build_rpi_tarball: |
| 130 | + runs-on: buildjet-4vcpu-ubuntu-2204-arm |
| 131 | + steps: |
| 132 | + - uses: actions/checkout@v4 |
| 133 | + with: |
| 134 | + ref: 'rpi' |
| 135 | + |
| 136 | + - name: Install needed packages |
| 137 | + run: | |
| 138 | + sudo rm -rf /etc/apt/sources.list.d/microsoft-prod.list |
| 139 | + sudo rm -rf /var/lib/apt/lists/* |
| 140 | + sudo sed -i 's/jammy/mantic/g' /etc/apt/sources.list |
| 141 | + sudo apt-get update && sudo apt-get install debootstrap mtools dosfstools qemu-user-static binfmt-support dpkg-dev -y |
| 142 | + sudo ln -sfn /usr/share/debootstrap/scripts/gutsy /usr/share/debootstrap/scripts/noble |
| 143 | + sudo dpkg -i debs/live-build_*_all.deb |
| 144 | + sudo mv /usr/share/debootstrap/functions functions |
| 145 | + sudo patch -i 0002-remove-WRONGSUITE-error.patch |
| 146 | + sudo mv functions /usr/share/debootstrap/functions |
| 147 | + sudo cp binary_grub-efi /usr/lib/live/build/binary_grub-efi |
| 148 | + |
| 149 | + - name: Make scripts executable |
| 150 | + run: chmod -R +x build.sh etc/auto/config etc/terraform.conf etc/ |
| 151 | + |
| 152 | + - name: Build tarball |
| 153 | + run: sudo ./build.sh etc/terraform.conf |
| 154 | + |
| 155 | + |
| 156 | + with: |
| 157 | + path: binary/ |
| 158 | + key: tar-rpi-${{ github.run_id }} |
| 159 | + |
| 160 | + deploy_rpi_desktop: |
| 161 | + needs: build_rpi_tarball |
| 162 | + runs-on: buildjet-4vcpu-ubuntu-2204 |
| 163 | + steps: |
| 164 | + - uses: actions/checkout@v4 |
| 165 | + with: |
| 166 | + ref: 'rpi' |
| 167 | + |
| 168 | + |
| 169 | + with: |
| 170 | + path: binary/ |
| 171 | + key: tar-rpi-${{ github.run_id }} |
| 172 | + |
| 173 | + - name: Deploy to partition |
| 174 | + run: source ./etc/terraform.conf && VER="${VERSION}${SUBVER}" && sudo ./debos-docker --privileged -t image:"Rhino-Linux-${VER}-rpi-desktop.img" -m 10G raspberrypi-desktop.yaml |
| 175 | + |
| 176 | + - name: Place output folder |
| 177 | + run: sudo mkdir -p builds/rpi-desktop |
| 178 | + |
| 179 | + - name: Move to output folder and compress |
| 180 | + run: | |
| 181 | + sudo mv Rhino*rpi-desktop.img builds/rpi-desktop/ |
| 182 | + sudo xz -v builds/rpi-desktop/Rhino*rpi-desktop.img |
| 183 | + echo "IMGRPD=$(cd builds/rpi-desktop; ls *.img.xz)" >> $GITHUB_ENV |
| 184 | +
|
| 185 | + |
| 186 | + with: |
| 187 | + name: ${{ env.IMGRPD }} |
| 188 | + path: builds/rpi-desktop/${{ env.IMGRPD }} |
| 189 | + |
| 190 | + deploy_rpi_server: |
| 191 | + needs: build_rpi_tarball |
| 192 | + runs-on: buildjet-4vcpu-ubuntu-2204 |
| 193 | + steps: |
| 194 | + - uses: actions/checkout@v4 |
| 195 | + with: |
| 196 | + ref: 'rpi' |
| 197 | + |
| 198 | + |
| 199 | + with: |
| 200 | + path: binary/ |
| 201 | + key: tar-rpi-${{ github.run_id }} |
| 202 | + |
| 203 | + - name: Deploy to partition |
| 204 | + run: source ./etc/terraform.conf && VER="${VERSION}${SUBVER}" && sudo ./debos-docker --privileged -t image:"Rhino-Linux-${VER}-rpi-server.img" -m 10G raspberrypi-server.yaml |
| 205 | + |
| 206 | + - name: Place output folder |
| 207 | + run: sudo mkdir -p builds/rpi-server |
| 208 | + |
| 209 | + - name: Move to output folder and compress |
| 210 | + run: | |
| 211 | + sudo mv Rhino*rpi-server.img builds/rpi-server/ |
| 212 | + sudo xz -v builds/rpi-server/Rhino*rpi-server.img |
| 213 | + echo "IMGRPS=$(cd builds/rpi-server; ls *.img.xz)" >> $GITHUB_ENV |
| 214 | +
|
| 215 | + |
| 216 | + with: |
| 217 | + name: ${{ env.IMGRPS }} |
| 218 | + path: builds/rpi-server/${{ env.IMGRPS }} |
| 219 | + |
| 220 | + build_tab_tarball: |
| 221 | + runs-on: buildjet-4vcpu-ubuntu-2204-arm |
| 222 | + steps: |
| 223 | + - uses: actions/checkout@v4 |
| 224 | + with: |
| 225 | + ref: 'pinetab' |
| 226 | + |
| 227 | + - name: Install needed packages |
| 228 | + run: | |
| 229 | + sudo rm -rf /etc/apt/sources.list.d/microsoft-prod.list |
| 230 | + sudo rm -rf /var/lib/apt/lists/* |
| 231 | + sudo sed -i 's/jammy/mantic/g' /etc/apt/sources.list |
| 232 | + sudo apt-get update && sudo apt-get install debootstrap mtools dosfstools qemu-user-static binfmt-support dpkg-dev -y |
| 233 | + sudo ln -sfn /usr/share/debootstrap/scripts/gutsy /usr/share/debootstrap/scripts/noble |
| 234 | + sudo dpkg -i debs/live-build_*_all.deb |
| 235 | + sudo mv /usr/share/debootstrap/functions functions |
| 236 | + sudo patch -i 0002-remove-WRONGSUITE-error.patch |
| 237 | + sudo mv functions /usr/share/debootstrap/functions |
| 238 | + sudo cp binary_grub-efi /usr/lib/live/build/binary_grub-efi |
| 239 | + sudo cp binary_rootfs /usr/lib/live/build/binary_rootfs |
| 240 | + |
| 241 | + - name: Make scripts executable |
| 242 | + run: chmod -R +x build.sh etc/auto/config etc/terraform.conf etc/ |
| 243 | + |
| 244 | + - name: Build tarball |
| 245 | + run: sudo ./build.sh etc/terraform.conf |
| 246 | + |
| 247 | + |
| 248 | + with: |
| 249 | + path: binary/ |
| 250 | + key: tar-tab-${{ github.run_id }} |
| 251 | + |
| 252 | + deploy_tab1: |
| 253 | + needs: build_tab_tarball |
| 254 | + runs-on: buildjet-4vcpu-ubuntu-2204 |
| 255 | + steps: |
| 256 | + - uses: actions/checkout@v4 |
| 257 | + with: |
| 258 | + ref: 'pinetab' |
| 259 | + |
| 260 | + |
| 261 | + with: |
| 262 | + path: binary/ |
| 263 | + key: tar-tab-${{ github.run_id }} |
| 264 | + |
| 265 | + - name: Deploy to partition |
| 266 | + run: source ./etc/terraform.conf && VER="${VERSION}${SUBVER}" && sudo ./debos-docker --privileged -t image:"Rhino-Linux-${VER}-pinetab.img" -m 10G pinetab.yaml |
| 267 | + |
| 268 | + - name: Place output folder |
| 269 | + run: sudo mkdir -p builds/tab |
| 270 | + |
| 271 | + - name: Move to output folder and compress |
| 272 | + run: | |
| 273 | + sudo mv Rhino*tab.img builds/tab/ |
| 274 | + sudo xz -v builds/tab/Rhino*tab.img |
| 275 | + echo "IMGPTA=$(cd builds/tab; ls *.img.xz)" >> $GITHUB_ENV |
| 276 | +
|
| 277 | + |
| 278 | + with: |
| 279 | + name: ${{ env.IMGPTA }} |
| 280 | + path: builds/tab/${{ env.IMGPTA }} |
| 281 | + |
| 282 | + deploy_tab2: |
| 283 | + needs: build_tab_tarball |
| 284 | + runs-on: buildjet-4vcpu-ubuntu-2204 |
| 285 | + steps: |
| 286 | + - uses: actions/checkout@v4 |
| 287 | + with: |
| 288 | + ref: 'pinetab' |
| 289 | + |
| 290 | + |
| 291 | + with: |
| 292 | + path: binary/ |
| 293 | + key: tar-tab-${{ github.run_id }} |
| 294 | + |
| 295 | + - name: Deploy to partition |
| 296 | + run: source ./etc/terraform.conf && VER="${VERSION}${SUBVER}" && sudo ./debos-docker --privileged -t image:"Rhino-Linux-${VER}-pinetab2.img" -m 10G pinetab2.yaml |
| 297 | + |
| 298 | + - name: Place output folder |
| 299 | + run: sudo mkdir -p builds/tab2 |
| 300 | + |
| 301 | + - name: Move to output folder and compress |
| 302 | + run: | |
| 303 | + sudo mv Rhino*tab2.img builds/tab2/ |
| 304 | + sudo xz -v builds/tab2/Rhino*tab2.img |
| 305 | + echo "IMGPTB=$(cd builds/tab2; ls *.img.xz)" >> $GITHUB_ENV |
| 306 | +
|
| 307 | + |
| 308 | + with: |
| 309 | + name: ${{ env.IMGPTB }} |
| 310 | + path: builds/tab2/${{ env.IMGPTB }} |
0 commit comments