mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-04 12:39:57 +01:00
Add sudo for ram disk creation
This commit is contained in:
parent
96446eb62c
commit
0ee8c1c796
6
.github/workflows/go-test.yml
vendored
6
.github/workflows/go-test.yml
vendored
@ -41,9 +41,9 @@ jobs:
|
|||||||
|
|
||||||
# Set up a tmpfs for ~/.hishtory/ to help tests run faster
|
# Set up a tmpfs for ~/.hishtory/ to help tests run faster
|
||||||
mkdir ~/.hishtory/
|
mkdir ~/.hishtory/
|
||||||
mount -F tmpfs -o size=500M swap ~/.hishtory/ || true
|
sudo mount -F tmpfs -o size=500M swap ~/.hishtory/ || true
|
||||||
diskutil apfs create $(hdiutil attach -nomount ram://1024000) RAMDisk || true
|
sudo diskutil apfs create $(sudo hdiutil attach -nomount ram://1024000) RAMDisk || true
|
||||||
mount -o noatime -t apfs /Volumes/RAMDisk ~/.hishtory/
|
sudo mount -o noatime -t apfs /Volumes/RAMDisk ~/.hishtory/ || true
|
||||||
|
|
||||||
# Run the tests
|
# Run the tests
|
||||||
make test
|
make test
|
||||||
|
Loading…
Reference in New Issue
Block a user