Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fsutil support #13

Merged
merged 1 commit into from
Feb 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
mount-if-exists: false
workspace-copy: true
native-dev-drive: false
trusted-dev-drive: false
env-mapping: ''

test-formats:
Expand Down Expand Up @@ -144,6 +145,24 @@ jobs:
working-directory: ${{ env.DEV_DRIVE }}
run: New-Item test.txt


test-trusted-mode:
strategy:
fail-fast: false
matrix:
runner: [ windows-2022, windows-2025 ]
with-mount-path: [ true, false ]
runs-on: ${{ matrix.runner }}
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Setup Dev Drive
uses: ./
with:
native-dev-drive: true
trusted-dev-drive: true
mount-path: ${{ matrix.with-mount-path && 'mount' || '' }}

test-mount-path:
strategy:
fail-fast: false
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 3.4.0

* Add ability to mark dev drive as trusted.

# 3.3.0

* Add `windows-2025` runner support.
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ You can optionally pass parameters to the action as follows:
workspace-copy: false
# Use native dev drive support when available. Defaults to true.
native-dev-drive: true
# Used to mark the native dev drive as trusted. Defaults to false.
trusted-dev-drive: false
# Custom mappings of output environment variables. Defaults to no mapping.
env-mapping: |
MY_PROJECT_BIN,{{ DEV_DRIVE }}/path/to/bin
Expand Down Expand Up @@ -161,6 +163,15 @@ This action will automatically use the built-in [Windows Dev Drive](https://lear
on your behalf when it's available on your Windows runner and `ReFS` is used.
You can use this option to turn this automatic usage off.

### *trusted-dev-drive*

By default, this option is set to `false`.

This action will not mark the dev drive as trusted and will leave it to default settings.
When an additional degree of performance is desired, marking a native dev drive as trusted may help.

Consult [official documentation](https://learn.microsoft.com/en-us/windows/dev-drive/#understanding-security-risks-and-trust-in-relation-to-dev-drive)
before considering enabling this functionality.

### *env-mapping*

Expand Down Expand Up @@ -214,7 +225,7 @@ typical values of the environment variables and the rest of the input is then ap
# ...
```

## Environment Variables
## Exported Environment Variables

These environment variables are meant to be used along `working-directory` to make sure
your workflow commands are executing relative to your dev drive.
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ inputs:
native-dev-drive:
description: "Use native dev drive support when available."
default: "true"
trusted-dev-drive:
description: "Use to mark a native dev drive as trusted."
default: "false"
env-mapping:
description: "Allows mapping environment variables generated by this action to new user-defined ones."
required: false
Expand Down
6 changes: 3 additions & 3 deletions dist/cleanup/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/setup/index.js

Large diffs are not rendered by default.

Loading
Loading