Skip to content

Commit

Permalink
temp de unify pinephone
Browse files Browse the repository at this point in the history
  • Loading branch information
oklopfer committed Jul 12, 2023
1 parent 4b7fe61 commit e0f6216
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 9 deletions.
36 changes: 33 additions & 3 deletions .github/workflows/devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,21 +110,51 @@ jobs:
key: tar-pine-${{ github.run_id }}

- name: Deploy to partition
run: sudo ./debos-docker -m 10G pinephone-unified.yaml
run: sudo ./debos-docker -m 10G pinephone.yaml

- name: Place output folder
run: sudo mkdir -p builds/pine

- name: Move to output folder and compress
run: |
sudo mv Rhino*unified.img builds/pine/
sudo xz -v builds/pine/Rhino*unified.img
sudo mv Rhino*pinephone.img builds/pine/
sudo xz -v builds/pine/Rhino*pinephone.img
echo "IMGPP=$(cd builds/pine; ls *.img.xz)" >> $GITHUB_ENV
- uses: actions/[email protected]
with:
name: ${{ env.IMGPP }}
path: builds/pine/${{ env.IMGPP }}

deploy_pine_pro:
needs: build_pine_tarball
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- uses: actions/[email protected]
with:
ref: 'pinephone'

- uses: actions/[email protected]
with:
path: binary/
key: tar-pine-${{ github.run_id }}

- name: Deploy to partition
run: sudo ./debos-docker -m 10G pinephone-pro.yaml

- name: Place output folder
run: sudo mkdir -p builds/pine-pro

- name: Move to output folder and compress
run: |
sudo mv Rhino*pro.img builds/pine-pro/
sudo xz -v builds/pine-pro/Rhino*pro.img
echo "IMGPPP=$(cd builds/pine-pro; ls *.img.xz)" >> $GITHUB_ENV
- uses: actions/[email protected]
with:
name: ${{ env.IMGPPP }}
path: builds/pine-pro/${{ env.IMGPPP }}

build_rpi_tarball:
runs-on: buildjet-4vcpu-ubuntu-2204-arm
Expand Down
43 changes: 37 additions & 6 deletions .github/workflows/pinephone.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: RL PinePhone Image Generation
name: RL PinePhone Generation

on:
workflow_dispatch

jobs:
build_pine_tarball:
runs-on: buildjet-8vcpu-ubuntu-2204-arm
runs-on: buildjet-4vcpu-ubuntu-2204-arm
steps:
- uses: actions/[email protected]
with:
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:

deploy_pine:
needs: build_pine_tarball
runs-on: buildjet-8vcpu-ubuntu-2204
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- uses: actions/[email protected]
with:
Expand All @@ -50,18 +50,49 @@ jobs:
key: tar-pine-${{ github.run_id }}

- name: Deploy to partition
run: sudo ./debos-docker -m 10G pinephone-unified.yaml
run: sudo ./debos-docker -m 10G pinephone.yaml

- name: Place output folder
run: sudo mkdir -p builds/pine

- name: Move to output folder and compress
run: |
sudo mv Rhino*unified.img builds/pine/
sudo xz -v builds/pine/Rhino*unified.img
sudo mv Rhino*pinephone.img builds/pine/
sudo xz -v builds/pine/Rhino*pinephone.img
echo "IMGPP=$(cd builds/pine; ls *.img.xz)" >> $GITHUB_ENV
- uses: actions/[email protected]
with:
name: ${{ env.IMGPP }}
path: builds/pine/${{ env.IMGPP }}

deploy_pine_pro:
needs: build_pine_tarball
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- uses: actions/[email protected]
with:
ref: 'pinephone'

- uses: actions/[email protected]
with:
path: binary/
key: tar-pine-${{ github.run_id }}

- name: Deploy to partition
run: sudo ./debos-docker -m 10G pinephone-pro.yaml

- name: Place output folder
run: sudo mkdir -p builds/pine-pro

- name: Move to output folder and compress
run: |
sudo mv Rhino*pro.img builds/pine-pro/
sudo xz -v builds/pine-pro/Rhino*pro.img
echo "IMGPPP=$(cd builds/pine-pro; ls *.img.xz)" >> $GITHUB_ENV
- uses: actions/[email protected]
with:
name: ${{ env.IMGPPP }}
path: builds/pine-pro/${{ env.IMGPPP }}

0 comments on commit e0f6216

Please sign in to comment.