mirror of
https://github.com/actions/runner.git
synced 2025-12-13 19:03:44 +00:00
Compare commits
9 Commits
v2.165.2
...
releases/m
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fcf795d86d | ||
|
|
5d95befb0b | ||
|
|
ba544a1d9f | ||
|
|
f1aa949184 | ||
|
|
0d1d346078 | ||
|
|
2cf97ad42c | ||
|
|
2a3e64d335 | ||
|
|
004d2ececd | ||
|
|
659e8a3685 |
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -43,6 +43,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
# Set Path workaround for https://github.com/actions/virtual-environments/issues/263
|
||||||
|
- run: |
|
||||||
|
echo "::add-path::C:\Program Files\Git\mingw64\bin"
|
||||||
|
echo "::add-path::C:\Program Files\Git\usr\bin"
|
||||||
|
echo "::add-path::C:\Program Files\Git\bin"
|
||||||
|
if: matrix.os == 'windows-latest'
|
||||||
|
name: "Temp step to Set Path for Windows"
|
||||||
|
|
||||||
# Build runner layout
|
# Build runner layout
|
||||||
- name: Build & Layout Release
|
- name: Build & Layout Release
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@@ -70,7 +70,15 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Set Path workaround for https://github.com/actions/virtual-environments/issues/263
|
||||||
|
- run: |
|
||||||
|
echo "::add-path::C:\Program Files\Git\mingw64\bin"
|
||||||
|
echo "::add-path::C:\Program Files\Git\usr\bin"
|
||||||
|
echo "::add-path::C:\Program Files\Git\bin"
|
||||||
|
if: matrix.os == 'windows-latest'
|
||||||
|
name: "Temp step to Set Path for Windows"
|
||||||
|
|
||||||
# Build runner layout
|
# Build runner layout
|
||||||
- name: Build & Layout Release
|
- name: Build & Layout Release
|
||||||
|
|||||||
@@ -17,14 +17,13 @@
|
|||||||
- Trace javascript action exit code to debug instead of user logs (#290)
|
- Trace javascript action exit code to debug instead of user logs (#290)
|
||||||
- Change prompt message when removing a runner to lines up with GitHub.com UI (#303)
|
- Change prompt message when removing a runner to lines up with GitHub.com UI (#303)
|
||||||
- Include step.env as part of env context. (#300)
|
- Include step.env as part of env context. (#300)
|
||||||
- Update Base64 Encoders to deal with suffixes (#284)
|
|
||||||
|
|
||||||
## Misc
|
## Misc
|
||||||
- Move .sln file under ./src (#238)
|
- Move .sln file under ./src (#238)
|
||||||
- Treat warnings as errors during compile (#249)
|
- Treat warnings as errors during compile (#249)
|
||||||
|
|
||||||
## Windows x64
|
## Windows x64
|
||||||
We recommend configuring the runner in a root folder of the Windows drive (e.g. "C:\actions-runner"). This will help avoid issues related to service identity folder permissions and long file path restrictions on Windows
|
We recommend configuring the runner under "<DRIVE>:\actions-runner". This will help avoid issues related to service identity folder permissions and long file path restrictions on Windows
|
||||||
```
|
```
|
||||||
// Create a folder under the drive root
|
// Create a folder under the drive root
|
||||||
mkdir \actions-runner ; cd \actions-runner
|
mkdir \actions-runner ; cd \actions-runner
|
||||||
@@ -32,7 +31,7 @@ mkdir \actions-runner ; cd \actions-runner
|
|||||||
Invoke-WebRequest -Uri https://github.com/actions/runner/releases/download/v<RUNNER_VERSION>/actions-runner-win-x64-<RUNNER_VERSION>.zip -OutFile actions-runner-win-x64-<RUNNER_VERSION>.zip
|
Invoke-WebRequest -Uri https://github.com/actions/runner/releases/download/v<RUNNER_VERSION>/actions-runner-win-x64-<RUNNER_VERSION>.zip -OutFile actions-runner-win-x64-<RUNNER_VERSION>.zip
|
||||||
// Extract the installer
|
// Extract the installer
|
||||||
Add-Type -AssemblyName System.IO.Compression.FileSystem ;
|
Add-Type -AssemblyName System.IO.Compression.FileSystem ;
|
||||||
[System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD\actions-runner-win-x64-<RUNNER_VERSION>.zip", "$PWD")
|
[System.IO.Compression.ZipFile]::ExtractToDirectory("$HOME\Downloads\actions-runner-win-x64-<RUNNER_VERSION>.zip", "$PWD")
|
||||||
```
|
```
|
||||||
|
|
||||||
## OSX
|
## OSX
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
2.164.0
|
2.165.2
|
||||||
|
|||||||
@@ -277,15 +277,12 @@ namespace GitHub.Runner.Listener.Configuration
|
|||||||
throw new NotSupportedException("Message queue listen OAuth token.");
|
throw new NotSupportedException("Message queue listen OAuth token.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Testing agent connection, detect any potential connection issue, like local clock skew that cause OAuth token expired.
|
// Testing agent connection, detect any protential connection issue, like local clock skew that cause OAuth token expired.
|
||||||
var credMgr = HostContext.GetService<ICredentialManager>();
|
var credMgr = HostContext.GetService<ICredentialManager>();
|
||||||
VssCredentials credential = credMgr.LoadCredentials();
|
VssCredentials credential = credMgr.LoadCredentials();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
await _runnerServer.ConnectAsync(new Uri(runnerSettings.ServerUrl), credential);
|
await _runnerServer.ConnectAsync(new Uri(runnerSettings.ServerUrl), credential);
|
||||||
// ConnectAsync() hits _apis/connectionData which is an anonymous endpoint
|
|
||||||
// Need to hit an authenticate endpoint to trigger OAuth token exchange.
|
|
||||||
await _runnerServer.GetAgentPoolsAsync();
|
|
||||||
_term.WriteSuccessMessage("Runner connection is good");
|
_term.WriteSuccessMessage("Runner connection is good");
|
||||||
}
|
}
|
||||||
catch (VssOAuthTokenRequestException ex) when (ex.Message.Contains("Current server time is"))
|
catch (VssOAuthTokenRequestException ex) when (ex.Message.Contains("Current server time is"))
|
||||||
|
|||||||
@@ -175,8 +175,8 @@ namespace GitHub.Runner.Common.Tests.Listener.Configuration
|
|||||||
Assert.True(s.PoolId.Equals(_expectedPoolId));
|
Assert.True(s.PoolId.Equals(_expectedPoolId));
|
||||||
Assert.True(s.WorkFolder.Equals(_expectedWorkFolder));
|
Assert.True(s.WorkFolder.Equals(_expectedWorkFolder));
|
||||||
|
|
||||||
// validate GetAgentPoolsAsync gets called twice with automation pool type
|
// validate GetAgentPoolsAsync gets called once with automation pool type
|
||||||
_runnerServer.Verify(x => x.GetAgentPoolsAsync(It.IsAny<string>(), It.Is<TaskAgentPoolType>(p => p == TaskAgentPoolType.Automation)), Times.Exactly(2));
|
_runnerServer.Verify(x => x.GetAgentPoolsAsync(It.IsAny<string>(), It.Is<TaskAgentPoolType>(p => p == TaskAgentPoolType.Automation)), Times.Once);
|
||||||
|
|
||||||
_runnerServer.Verify(x => x.AddAgentAsync(It.IsAny<int>(), It.Is<TaskAgent>(a => a.Labels.Contains("self-hosted") && a.Labels.Contains(VarUtil.OS) && a.Labels.Contains(VarUtil.OSArchitecture))), Times.Once);
|
_runnerServer.Verify(x => x.AddAgentAsync(It.IsAny<int>(), It.Is<TaskAgent>(a => a.Labels.Contains("self-hosted") && a.Labels.Contains(VarUtil.OS) && a.Labels.Contains(VarUtil.OSArchitecture))), Times.Once);
|
||||||
}
|
}
|
||||||
|
|||||||
11
src/dev.cmd
11
src/dev.cmd
@@ -1,16 +1,5 @@
|
|||||||
@setlocal
|
@setlocal
|
||||||
@echo off
|
@echo off
|
||||||
rem add expected utils to path
|
|
||||||
IF EXIST C:\Program Files\Git\usr\bin (
|
|
||||||
SET PATH=C:\Program Files\Git\usr\bin;%PATH%
|
|
||||||
)
|
|
||||||
IF EXIST C:\Program Files\Git\mingw64\bin (
|
|
||||||
SET PATH=C:\Program Files\Git\mingw64\bin;%PATH%
|
|
||||||
)
|
|
||||||
IF EXIST C:\Program Files\Git\bin (
|
|
||||||
SET PATH=C:\Program Files\Git\bin;%PATH%
|
|
||||||
)
|
|
||||||
|
|
||||||
rem Check if SH_PATH is defined.
|
rem Check if SH_PATH is defined.
|
||||||
if defined SH_PATH (
|
if defined SH_PATH (
|
||||||
goto run
|
goto run
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
2.165.0
|
2.165.2
|
||||||
|
|||||||
Reference in New Issue
Block a user