Skip to content

Commit c8afc84

Browse files
committed
GitHub Actions Runner
0 parents  commit c8afc84

File tree

1,255 files changed

+198670
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,255 files changed

+198670
-0
lines changed

.gitattributes

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
# Shell scripts should always use line feed not crlf
7+
*.sh text eol=lf
8+
9+
###############################################################################
10+
# Set default behavior for command prompt diff.
11+
#
12+
# This is need for earlier builds of msysgit that does not have it on by
13+
# default for csharp files.
14+
# Note: This is only used by command line
15+
###############################################################################
16+
#*.cs diff=csharp
17+
18+
###############################################################################
19+
# Set the merge driver for project and solution files
20+
#
21+
# Merging from the command prompt will add diff markers to the files if there
22+
# are conflicts (Merging from VS is not affected by the settings below, in VS
23+
# the diff markers are never inserted). Diff markers may cause the following
24+
# file extensions to fail to load in VS. An alternative would be to treat
25+
# these files as binary and thus will always conflict and require user
26+
# intervention with every merge. To do so, just uncomment the entries below
27+
###############################################################################
28+
*.js text
29+
*.json text
30+
*.resjson text
31+
*.htm text
32+
*.html text
33+
*.xml text
34+
*.txt text
35+
*.ini text
36+
*.inc text
37+
#*.sln merge=binary
38+
#*.csproj merge=binary
39+
#*.vbproj merge=binary
40+
#*.vcxproj merge=binary
41+
#*.vcproj merge=binary
42+
#*.dbproj merge=binary
43+
#*.fsproj merge=binary
44+
#*.lsproj merge=binary
45+
#*.wixproj merge=binary
46+
#*.modelproj merge=binary
47+
#*.sqlproj merge=binary
48+
#*.wwaproj merge=binary
49+
50+
###############################################################################
51+
# behavior for image files
52+
#
53+
# image files are treated as binary by default.
54+
###############################################################################
55+
*.png binary
56+
*.jpg binary
57+
*.jpeg binary
58+
*.gif binary
59+
*.ico binary
60+
*.mov binary
61+
*.mp4 binary
62+
*.mp3 binary
63+
*.flv binary
64+
*.fla binary
65+
*.swf binary
66+
*.gz binary
67+
*.zip binary
68+
*.7z binary
69+
*.ttf binary
70+
71+
###############################################################################
72+
# diff behavior for common document formats
73+
#
74+
# Convert binary document formats to text before diffing them. This feature
75+
# is only available from the command line. Turn it on by uncommenting the
76+
# entries below.
77+
###############################################################################
78+
*.doc diff=astextplain
79+
*.DOC diff=astextplain
80+
*.docx diff=astextplain
81+
*.DOCX diff=astextplain
82+
*.dot diff=astextplain
83+
*.DOT diff=astextplain
84+
*.pdf diff=astextplain
85+
*.PDF diff=astextplain
86+
*.rtf diff=astextplain
87+
*.RTF diff=astextplain

.github/ISSUE_TEMPLATE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Runner Version and Platform
2+
Version of your runner?
3+
4+
OS of the machine running the runner? OSX/Windows/Linux/...
5+
6+
## What's not working?
7+
Please include error messages and screenshots.
8+
9+
## Runner and Worker's Diagnostic Logs
10+
Logs are located in the runner's `_diag` folder. The runner logs are prefixed with `Runner_` and the worker logs are prefixed with `Worker_`. All sensitive information should already be masked out, but please double-check before pasting here.

.github/workflows/build.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Runner CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
jobs:
12+
build:
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macOS-latest]
16+
include:
17+
- os: ubuntu-latest
18+
devScript: ./dev.sh
19+
- os: macOS-latest
20+
devScript: ./dev.sh
21+
- os: windows-latest
22+
devScript: dev.cmd
23+
runs-on: ${{ matrix.os }}
24+
steps:
25+
- uses: actions/checkout@v1
26+
27+
# Build runner layout
28+
- name: Build & Layout Release
29+
run: |
30+
${{ matrix.devScript }} layout Release
31+
working-directory: src
32+
33+
# Run tests
34+
- name: L0
35+
run: |
36+
${{ matrix.devScript }} test
37+
working-directory: src
38+
39+
# Create runner package tar.gz/zip
40+
- name: Package Release
41+
if: github.event_name != 'pull_request'
42+
run: |
43+
${{ matrix.devScript }} package Release
44+
working-directory: src
45+
46+
# Upload runner package tar.gz/zip as artifact
47+
- name: Publish Artifact
48+
if: github.event_name != 'pull_request'
49+
uses: actions/upload-artifact@v1
50+
with:
51+
name: runner-package-${{ matrix.os }}
52+
path: _package

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**/bin
2+
**/obj
3+
**/libs
4+
**/*.xproj
5+
**/*.xproj.user
6+
**/*.sln
7+
**/.vs
8+
**/.vscode
9+
**/*.error
10+
**/*.json.pretty
11+
node_modules
12+
_downloads
13+
_layout
14+
_package
15+
_dotnetsdk
16+
TestResults
17+
TestLogs
18+
.DS_Store
19+
**/*.DotSettings.user
20+
21+
#generated
22+
src/Runner.Sdk/BuildConstants.cs
23+

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
Copyright (c) Microsoft Corporation
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to deal
6+
in the Software without restriction, including without limitation the rights
7+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in all
12+
copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20+
SOFTWARE.

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# GitHub Actions Runner
2+
3+
<p align="center">
4+
<img src="docs/res/github-graph.png">
5+
</p>
6+
7+
[![Actions Status](https://github.com/actions/runner/workflows/Runner%20CI/badge.svg)](https://github.com/actions/runner/actions)
8+
9+
## Get Started
10+
11+
![win](docs/res/win_sm.png) [Pre-reqs](docs/start/envwin.md) | [Download](https://github.com/actions/runner/releases/latest)
12+
13+
![macOS](docs/res/apple_sm.png) [Pre-reqs](docs/start/envosx.md) | [Download](https://github.com/actions/runner/releases/latest)
14+
15+
![linux](docs/res/linux_sm.png) [Pre-reqs](docs/start/envlinux.md) | [Download](https://github.com/actions/runner/releases/latest)
16+
17+
**Configure:**
18+
19+
*MacOS and Linux*
20+
```bash
21+
./config.sh
22+
```
23+
24+
*Windows*
25+
```bash
26+
config.cmd
27+
```
28+
29+
## Contribute
30+
31+
For developers that want to contribute, [read here](docs/contribute.md) on how to build and test.

assets.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[
2+
{
3+
"name": "actions-runner-win-x64-<RUNNER_VERSION>.zip",
4+
"platform": "win-x64",
5+
"version": "<RUNNER_VERSION>",
6+
"downloadUrl": "https://githubassets.azureedge.net/runners/<RUNNER_VERSION>/actions-runner-win-x64-<RUNNER_VERSION>.zip"
7+
},
8+
{
9+
"name": "actions-runner-osx-x64-<RUNNER_VERSION>.tar.gz",
10+
"platform": "osx-x64",
11+
"version": "<RUNNER_VERSION>",
12+
"downloadUrl": "https://githubassets.azureedge.net/runners/<RUNNER_VERSION>/actions-runner-osx-x64-<RUNNER_VERSION>.tar.gz"
13+
},
14+
{
15+
"name": "actions-runner-linux-x64-<RUNNER_VERSION>.tar.gz",
16+
"platform": "linux-x64",
17+
"version": "<RUNNER_VERSION>",
18+
"downloadUrl": "https://githubassets.azureedge.net/runners/<RUNNER_VERSION>/actions-runner-linux-x64-<RUNNER_VERSION>.tar.gz"
19+
}
20+
]

0 commit comments

Comments
 (0)