Skip to content

Commit

Permalink
Add GH Actions ubuntu-latest build job (#1644)
Browse files Browse the repository at this point in the history
  • Loading branch information
lahma committed Oct 31, 2023
1 parent c7dc2b7 commit 2b70ae4
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,25 @@ jobs:
with:
name: artifacts
path: artifacts
ubuntu-latest:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('global.json', 'src/**/*.csproj', 'src/**/package.json') }}
- name: 'Run: Compile, Test, Pack, Publish'
run: ./build.cmd Compile Test Pack Publish
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
MYGET_API_KEY: ${{ secrets.MYGET_API_KEY }}
- name: 'Publish: artifacts'
uses: actions/upload-artifact@v3
with:
name: artifacts
path: artifacts
14 changes: 14 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,17 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('global.json', 'src/**/*.csproj', 'src/**/package.json') }}
- name: 'Run: Compile, Test, Pack'
run: ./build.cmd Compile Test Pack
ubuntu-latest:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('global.json', 'src/**/*.csproj', 'src/**/package.json') }}
- name: 'Run: Compile, Test, Pack'
run: ./build.cmd Compile Test Pack
6 changes: 2 additions & 4 deletions build/Build.CI.GitHubActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
[GitHubActionsAttribute(
"pr",
GitHubActionsImage.WindowsLatest,
//GitHubActionsImage.UbuntuLatest,
//GitHubActionsImage.MacOsLatest,
GitHubActionsImage.UbuntuLatest,
OnPullRequestBranches = new[] { "master", "main" },
OnPullRequestIncludePaths = new[] { "**/*.*" },
OnPullRequestExcludePaths = new[] { "**/*.md" },
Expand All @@ -15,8 +14,7 @@
[GitHubActionsAttribute(
"build",
GitHubActionsImage.WindowsLatest,
//GitHubActionsImage.UbuntuLatest,
//GitHubActionsImage.MacOsLatest,
GitHubActionsImage.UbuntuLatest,
OnPushBranches = new[] { "master", "main" },
OnPushTags = new[] { "v*.*.*", "v*.*.*-*" },
OnPushIncludePaths = new[] { "**/*.*" },
Expand Down

0 comments on commit 2b70ae4

Please sign in to comment.