mirror of
https://github.com/ddworken/hishtory.git
synced 2025-01-28 17:19:52 +01:00
Fix tmpfs creation for macos
This commit is contained in:
parent
9de10560a6
commit
a2617e970a
15
.github/workflows/go-test.yml
vendored
15
.github/workflows/go-test.yml
vendored
@ -49,9 +49,8 @@ jobs:
|
|||||||
sudo scutil --set HostName ghaction-runner-hostname
|
sudo scutil --set HostName ghaction-runner-hostname
|
||||||
|
|
||||||
# Set up a tmpfs for ~/.hishtory/ to help tests run faster
|
# Set up a tmpfs for ~/.hishtory/ to help tests run faster
|
||||||
mkdir ~/.hishtory/
|
sudo diskutil apfs create $(sudo hdiutil attach -nomount ram://1024000) tmpfs
|
||||||
sudo diskutil apfs create $(sudo hdiutil attach -nomount ram://1024000) RAMDisk
|
ln -s /Volumes/tmpfs ~/.hishtory
|
||||||
sudo mount -o noatime -t apfs /Volumes/RAMDisk ~/.hishtory/
|
|
||||||
- name: Go test
|
- name: Go test
|
||||||
if: ${{ !startsWith(github.event.head_commit.message, 'Release') }}
|
if: ${{ !startsWith(github.event.head_commit.message, 'Release') }}
|
||||||
run: |
|
run: |
|
||||||
@ -61,8 +60,8 @@ jobs:
|
|||||||
|
|
||||||
# Run the tests
|
# Run the tests
|
||||||
make test
|
make test
|
||||||
- name: Setup tmate session
|
# - name: Setup tmate session
|
||||||
if: ${{ failure() }}
|
# if: ${{ failure() }}
|
||||||
uses: mxschmitt/action-tmate@v3
|
# uses: mxschmitt/action-tmate@v3
|
||||||
with:
|
# with:
|
||||||
limit-access-to-actor: true
|
# limit-access-to-actor: true
|
Loading…
Reference in New Issue
Block a user