-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve scripts, add new iso build mode - "empty", update repositories (
#29) * Improve scripts * Add new iso build mode - "empty" * Update repositories
- Loading branch information
Showing
34 changed files
with
243 additions
and
166 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
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,5 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
rm -fr "airootfs/home" | ||
rm -fr "airootfs/root/customize_airootfs" |
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
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,61 @@ | ||
name: Build ISO on hosted runner (CUDA, empty) | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build image | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: archlinux:latest | ||
|
||
options: --privileged --volume ${{ github.workspace }}:/workspace | ||
run: | | ||
# Exit on error | ||
set -eu | ||
# Enter project directory | ||
pushd /workspace | ||
# Install dependencies | ||
.ci/dependencies.sh | ||
# Patch mkarchiso | ||
.ci/mkarchiso.sh | ||
# Remove repositories | ||
.ci/empty.sh | ||
# Configure to use CUDA | ||
.ci/configure.py cuda empty | ||
popd | ||
# Build image | ||
mkarchiso -v -m iso -w /_work -o /workspace/out /workspace | ||
- name: Create summary | ||
run: | | ||
# Exit on error | ||
set -eu | ||
# Print checksums to summary | ||
sha256sum out/* > "$GITHUB_STEP_SUMMARY" | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: archiso-output | ||
path: out/ |
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,65 @@ | ||
name: Build ISO on hosted runner (ROCm, empty) | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Cleanup | ||
uses: rokibhasansagar/slimhub_actions@main | ||
with: | ||
retain: "docker_buildkit,docker_imgcache" | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build image | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: archlinux:latest | ||
|
||
options: --privileged --volume ${{ github.workspace }}:/workspace | ||
run: | | ||
# Exit on error | ||
set -eu | ||
# Enter project directory | ||
pushd /workspace | ||
# Install dependencies | ||
.ci/dependencies.sh | ||
# Patch mkarchiso | ||
.ci/mkarchiso.sh | ||
# Remove repositories | ||
.ci/empty.sh | ||
# Configure to use ROCm | ||
.ci/configure.py rocm empty | ||
popd | ||
# Build image | ||
mkarchiso -v -m iso -w /_work -o /workspace/out /workspace | ||
- name: Create summary | ||
run: | | ||
# Exit on error | ||
set -eu | ||
# Print checksums to summary | ||
sha256sum out/* > "$GITHUB_STEP_SUMMARY" | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: archiso-output | ||
path: out/ |
Oops, something went wrong.