Fix tmpfs creation for macos

This commit is contained in:
David Dworken 2023-09-02 18:25:09 -07:00
parent 9de10560a6
commit a2617e970a
No known key found for this signature in database

View File

@ -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