1515jobs :
1616 build-linux :
1717 runs-on : ubuntu-22.04
18+ if : ${{ github.ref_name != 'd-drive' }}
1819
1920 steps :
2021 - name : Checkout
@@ -64,20 +65,23 @@ jobs:
6465 runs-on : windows-2019
6566
6667 steps :
67- # This is an attempt to make the Windows CI image faster. Not sure if it works.
68- - name : Disable Defender
69- run : Set-MpPreference -DisableRealtimeMonitoring $true
70-
7168 - name : Checkout
7269 uses : actions/checkout@v4
7370 with :
7471 submodules : recursive
7572
73+ - name : Set up workspace path
74+ run : echo "FAST_WORKSPACE=D:\workspace" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
75+
76+ - name : Copy Git repo to D drive
77+ run : |
78+ Copy-Item -Path "${{ github.workspace }}" -Destination "${{ env.FAST_WORKSPACE }}" -Recurse
79+
7680 # Put the Chocolatey temp directory in a place where we can use the cache action to save and restore it.
7781 - name : Set chocolatey temp directory
7882 run : |
79- choco config set cacheLocation --value "$Env:GITHUB_WORKSPACE \chocolatey_cache"
80- echo "CHOCO_TEMP=$Env:GITHUB_WORKSPACE \chocolatey_cache" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
83+ choco config set cacheLocation --value "D: \chocolatey_cache"
84+ echo "CHOCO_TEMP=D: \chocolatey_cache" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
8185
8286 - name : Restore Chocolatey cache
8387 id : choco-cache-restore
@@ -111,24 +115,29 @@ jobs:
111115 key : choco-${{ github.job }}-${{ hashFiles(format('{0}\**\*', env.CHOCO_TEMP)) }}
112116
113117 - uses : Swatinem/rust-cache@v2
118+ with :
119+ workspaces : ${{ env.FAST_WORKSPACE }}
114120
115121 - name : Build GUI
116122 run : cargo build --release -p gui
123+ working-directory : ${{ env.FAST_WORKSPACE }}
117124
118125 - name : Build OpenFX plugin
119126 run : cargo xtask build-ofx-plugin --release
127+ working-directory : ${{ env.FAST_WORKSPACE }}
120128
121129 - name : Build After Effects plugin
122130 run : |
123131 cargo build --release -p ae-plugin
124132 cp target\release\ae_plugin.dll .\ntsc-rs-ae.aex
133+ working-directory : ${{ env.FAST_WORKSPACE }}
125134
126135 - name : Archive Windows OpenFX plugin
127136 uses : actions/upload-artifact@v4
128137 if : ${{ github.ref_type == 'tag' }}
129138 with :
130139 name : ntsc-rs-windows-openfx
131- path : crates/openfx-plugin/build/
140+ path : ${{ env.FAST_WORKSPACE }}/ crates/openfx-plugin/build/
132141
133142 - name : Package Windows binary
134143 if : ${{ github.ref_type == 'tag' }}
@@ -143,23 +152,25 @@ jobs:
143152 cp ..\target\release\ntsc-rs-standalone.exe .\bin\
144153 cp ..\target\release\ntsc-rs-cli.exe .\bin\
145154 cp ..\target\release\ntsc-rs-launcher.exe .\
155+ working-directory : ${{ env.FAST_WORKSPACE }}
146156
147157 - name : Archive Windows binary
148158 uses : actions/upload-artifact@v4
149159 if : ${{ github.ref_type == 'tag' }}
150160 with :
151161 name : ntsc-rs-windows-standalone
152- path : ntsc-rs-windows-standalone
162+ path : ${{ env.FAST_WORKSPACE }}/ ntsc-rs-windows-standalone
153163
154164 - name : Archive Windows After Effects plugin
155165 uses : actions/upload-artifact@v4
156166 if : ${{ github.ref_type == 'tag' }}
157167 with :
158168 name : ntsc-rs-windows-afterfx
159- path : .\ ntsc-rs-ae.aex
169+ path : ${{ env.FAST_WORKSPACE }}/ ntsc-rs-ae.aex
160170
161171 build-macos :
162172 runs-on : macos-14
173+ if : ${{ github.ref_name != 'd-drive' }}
163174
164175 steps :
165176 - name : Checkout
0 commit comments