Skip to content

Commit

Permalink
Remove Octoprint, Mainsail and Reflash from the build, they are handl…
Browse files Browse the repository at this point in the history
…ed elsewhere.
  • Loading branch information
eliasbakken committed Nov 24, 2023
1 parent 9592268 commit f3fa053
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 58 deletions.
116 changes: 58 additions & 58 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,45 +29,45 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true

build-mainsail:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3

- name: Remove old images
run: rm -f ../images/rebuild-mainsail-*.img.xz

- name: Run build
run: ./rebuild.sh mainsail

- name: Release if tagged
uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
allowUpdates: true
artifacts: ../images/rebuild-mainsail-v*.img.xz
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true

build-octoprint:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3

- name: Remove old images
run: rm -f ../images/rebuild-octoprint-*.img.xz

- name: Run build
run: ./rebuild.sh octoprint

- name: Release if tagged
uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
allowUpdates: true
artifacts: ../images/rebuild-octoprint-v*.img.xz
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
# build-mainsail:
# runs-on: self-hosted
# steps:
# - uses: actions/checkout@v3

# - name: Remove old images
# run: rm -f ../images/rebuild-mainsail-*.img.xz

# - name: Run build
# run: ./rebuild.sh mainsail

# - name: Release if tagged
# uses: ncipollo/release-action@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# allowUpdates: true
# artifacts: ../images/rebuild-mainsail-v*.img.xz
# token: ${{ secrets.GITHUB_TOKEN }}
# prerelease: true

# build-octoprint:
# runs-on: self-hosted
# steps:
# - uses: actions/checkout@v3

# - name: Remove old images
# run: rm -f ../images/rebuild-octoprint-*.img.xz

# - name: Run build
# run: ./rebuild.sh octoprint

# - name: Release if tagged
# uses: ncipollo/release-action@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# allowUpdates: true
# artifacts: ../images/rebuild-octoprint-v*.img.xz
# token: ${{ secrets.GITHUB_TOKEN }}
# prerelease: true

build-fluidd:
runs-on: self-hosted
Expand All @@ -89,22 +89,22 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true

build-reflash:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3

- name: Remove old images
run: rm -f ../images/rebuild-reflash-*.img.xz

- name: Run build
run: ./rebuild.sh reflash

- name: Release if tagged
uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
allowUpdates: true
artifacts: ../images/rebuild-reflash-v*.img.xz
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
# build-reflash:
# runs-on: self-hosted
# steps:
# - uses: actions/checkout@v3

# - name: Remove old images
# run: rm -f ../images/rebuild-reflash-*.img.xz

# - name: Run build
# run: ./rebuild.sh reflash

# - name: Release if tagged
# uses: ncipollo/release-action@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# allowUpdates: true
# artifacts: ../images/rebuild-reflash-v*.img.xz
# token: ${{ secrets.GITHUB_TOKEN }}
# prerelease: true
16 changes: 16 additions & 0 deletions armbian/customize-image-octoprint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,20 @@ prepare_build() {
cp /tmp/overlay/rebuild/rebuild-version /etc/refactor.version
}

add_overlays(){
mkdir /boot/overlay-user
cp /tmp/overlay/dts/* /boot/overlay-user
armbian-add-overlay /boot/overlay-user/sun50i-a64-usb-device.dts
}

fix_netplan(){
cat <<- EOF > /etc/netplan/armbian-default.yaml
network:
version: 2
renderer: NetworkManager
EOF
}

post_build() {
echo "🍰 Post build"
# Force debian to change password
Expand All @@ -189,6 +203,8 @@ install_octoprint
install_ustreamer
install_bins
install_autohotspot
add_overlays
fix_netplan
post_build

echo "🍰 Rebuild finished"
16 changes: 16 additions & 0 deletions armbian/customize-image-reflash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,26 @@ install_autohotspot() {
systemctl enable autohotspot.service
}

add_overlays(){
mkdir /boot/overlay-user
cp /tmp/overlay/dts/* /boot/overlay-user
armbian-add-overlay /boot/overlay-user/sun50i-a64-usb-device.dts
}

fix_netplan(){
cat <<- EOF > /etc/netplan/armbian-default.yaml
network:
version: 2
renderer: NetworkManager
EOF
}

set -e

echo "🍰 Reflash starting..."
prepare_install
install_reflash
install_autohotspot
add_overlays
fix_netplan
echo "🍰 Custom script completed"

0 comments on commit f3fa053

Please sign in to comment.