Skip to content

Commit dfd68d0

Browse files
committed
Remove Windows from CI and simplify SSH setup
- Remove Windows from CI matrix (Linux/macOS only) - Simplify SSH setup since Windows support not needed - Keep SSH deploy key configuration for private repo access
1 parent ce857d0 commit dfd68d0

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
os:
2323
- ubuntu-latest
2424
- macOS-latest
25-
- windows-latest
2625
arch:
2726
- x64
2827
steps:
@@ -32,8 +31,8 @@ jobs:
3231
version: ${{ matrix.version }}
3332
arch: ${{ matrix.arch }}
3433
- uses: julia-actions/cache@v2
35-
- name: Setup SSH for private repos (Unix)
36-
if: ${{ secrets.DEPLOY_KEY != '' && runner.os != 'Windows' }}
34+
- name: Setup SSH for private repos
35+
if: ${{ secrets.DEPLOY_KEY != '' }}
3736
run: |
3837
mkdir -p ~/.ssh
3938
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/deploy_key
@@ -45,21 +44,6 @@ jobs:
4544
echo " IdentityFile ~/.ssh/deploy_key" >> ~/.ssh/config
4645
echo " IdentitiesOnly yes" >> ~/.ssh/config
4746
chmod 600 ~/.ssh/config
48-
- name: Setup SSH for private repos (Windows)
49-
if: ${{ secrets.DEPLOY_KEY != '' && runner.os == 'Windows' }}
50-
shell: pwsh
51-
run: |
52-
$sshDir = "$env:USERPROFILE\.ssh"
53-
if (!(Test-Path $sshDir)) { New-Item -ItemType Directory -Path $sshDir -Force }
54-
$env:DEPLOY_KEY | Out-File -FilePath "$sshDir\deploy_key" -Encoding ascii
55-
ssh-keyscan github.com | Out-File -FilePath "$sshDir\known_hosts" -Encoding ascii -Append
56-
@"
57-
Host github.com
58-
HostName github.com
59-
User git
60-
IdentityFile $sshDir\deploy_key
61-
IdentitiesOnly yes
62-
"@ | Out-File -FilePath "$sshDir\config" -Encoding ascii
6347
- uses: julia-actions/julia-buildpkg@v1
6448
- uses: julia-actions/julia-runtest@v1
6549
- uses: julia-actions/julia-processcoverage@v1

0 commit comments

Comments
 (0)