Skip to content

Commit

Permalink
Merge branch 'fix/release-workflow'
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy committed Jun 14, 2024
2 parents 82c8d5a + 88216f5 commit bef25a8
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 2 deletions.
61 changes: 61 additions & 0 deletions .github/actions/extend-space/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Extends disk space on github hosted runners


name: "Extend space"
description: "Teases out as much free space as possible"

runs:
using: "composite"
steps:
- name: Create mountpoint for extended space
shell: "bash"
run: sudo mkdir /mnt/extended

- name: Maximize build space
uses: easimon/maximize-build-space@v6
# uses: AdityaGarg8/remove-unwanted-software@v1
with:
remove-dotnet: true
remove-android: true
remove-haskell: true
build-mount-path: /mnt/extended
root-reserve-mb: 512
swap-size-mb: 1024

# after we've got the extended space mounted, we can use overlayfs and bind
# mounts as appropriate to make this space available to all paths that are
# expected to be written to.
#
# for new directories (such as /nix), a bind mount is enough for existing
# directories (such as $HOME and /tmp), we use an overlay to preserve access
# to the existing files, while redirecting changes to the extended space.
- name: Use extended space for /nix, /tmp, /var/tmp, and $HOME
shell: "bash"
run: |
export EXTENDED_PATH=/mnt/extended
sudo mkdir $EXTENDED_PATH/{tmp,nix,home}
sudo mkdir $EXTENDED_PATH/tmp/{upper,work}
sudo mv /tmp{,_lower}
sudo mkdir /tmp
sudo mount -t overlay overlay \
-o lowerdir=/tmp_lower,upperdir=$EXTENDED_PATH/tmp/upper,workdir=$EXTENDED_PATH/tmp/work \
/tmp
sudo chown $(id -u):$(id -g) /tmp
sudo mkdir -p $EXTENDED_PATH/var/tmp/{upper,work}
sudo mv /var/tmp{,_lower}
sudo mkdir -p /var/tmp
sudo mount -t overlay overlay \
-o lowerdir=/var/tmp_lower,upperdir=$EXTENDED_PATH/var/tmp/upper,workdir=$EXTENDED_PATH/var/tmp/work \
/var/tmp
sudo chown $(id -u):$(id -g) /var/tmp
sudo mkdir /nix
sudo mount -o bind $EXTENDED_PATH/nix /nix
sudo mkdir $EXTENDED_PATH/home/{upper,work}
sudo mv ${HOME} ${HOME}_lower
sudo mkdir ${HOME}
sudo chown $(id -u):$(id -g) $HOME
sudo mount -t overlay overlay \
-o lowerdir=${HOME}_lower,upperdir=$EXTENDED_PATH/home/upper,workdir=$EXTENDED_PATH/home/work \
$HOME
sudo chown $(id -u):$(id -g) $HOME
df -h
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"productName": "relay",
"version": "0.0.1-dev.2",
"version": "0.0.1-dev.3",
"identifier": "org.holochain.relay",
"build": {
"beforeBuildCommand": "npm run build -w ui",
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ui",
"version": "0.0.1-dev.2",
"version": "0.0.1-dev.3",
"private": true,
"scripts": {
"start": "vite --clearScreen false",
Expand Down

0 comments on commit bef25a8

Please sign in to comment.