added jobs to build both
This commit is contained in:
parent
d7f5a77e60
commit
5703d02d75
1 changed files with 30 additions and 9 deletions
39
.github/workflows/build.yaml
vendored
39
.github/workflows/build.yaml
vendored
|
@ -1,4 +1,3 @@
|
|||
# This workflow will build an Arch Linux ISO file with the commit on it
|
||||
name: build parchiso per release
|
||||
on:
|
||||
release:
|
||||
|
@ -10,8 +9,9 @@ env:
|
|||
name: ${{ github.event.repository.name }}
|
||||
release_name: ${{ github.ref_name }}
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-nvidia:
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -21,17 +21,38 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Packages via Pacman
|
||||
run: pacman -Sy; pacman --noconfirm -S git archiso python python-pygithub github-cli reflector p7zip
|
||||
- name: Change Arch docker mirror
|
||||
run: reflector -c "US" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
|
||||
- name: Build image
|
||||
run: pacman -Sy; pacman --noconfirm -S git archiso python python-pygithub github-cli p7zip
|
||||
- name: Replace packages and profile with Nvidia versions
|
||||
run: |
|
||||
cp packages-nvidia.x86_64 packages.x86_64
|
||||
cp profiledef-nvidia.sh profiledef.sh
|
||||
- name: Build Nvidia image
|
||||
run: mkarchiso -v iso/
|
||||
- name: Upload iso to the release
|
||||
- name: Upload Nvidia iso to the release
|
||||
run: |
|
||||
cd ./out
|
||||
mkdir iso_parts
|
||||
7z -v1000m a iso_parts/"$(ls *.iso)".zip "$(ls *.iso)"
|
||||
md5sum iso_parts/* > iso_parts/md5sums-nvidia.txt
|
||||
gh release upload ${{ github.event.release.tag_name }} ./iso_parts/* -R ${{ github.repository }}
|
||||
|
||||
build-non-nvidia:
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: archlinux:latest
|
||||
options: --privileged
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Packages via Pacman
|
||||
run: pacman -Sy; pacman --noconfirm -S git archiso python python-pygithub github-cli p7zip
|
||||
- name: Build non-Nvidia image
|
||||
run: mkarchiso -v iso/
|
||||
- name: Upload non-Nvidia iso to the release
|
||||
run: |
|
||||
cd ./out
|
||||
mkdir iso_parts
|
||||
# split -d -b 2000M "$(ls *.iso)" iso_parts/"$(ls *.iso)"_part
|
||||
#zip -s 2000m iso_parts/"$(ls *.iso)".zip "$(ls *.iso)"
|
||||
7z -v1000m a iso_parts/"$(ls *.iso)".zip "$(ls *.iso)"
|
||||
md5sum iso_parts/* > iso_parts/md5sums.txt
|
||||
gh release upload ${{ github.event.release.tag_name }} ./iso_parts/* -R ${{ github.repository }}
|
||||
|
|
Loading…
Add table
Reference in a new issue