Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-upstream test of Cache Actions #7

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/build-map-renderer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ jobs:
- name: Install dependencies
run: dotnet restore

- name: Cache Build
id: cache-release
uses: actions/cache@v3
env:
cache-name: cache-build-release
with:
path: bin
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-build-release-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-build-release
continue-on-error: true

- name: Build Project
run: dotnet build Content.MapRenderer --configuration Release --no-restore /p:WarningsAsErrors=nullable /m

Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/build-test-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ jobs:
- name: Install dependencies
run: dotnet restore

- name: Cache Build
id: cache-debugopt
uses: actions/cache@v3
env:
cache-name: cache-build-debugopt
with:
path: bin
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-build-debugopt-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-build-debugopt
continue-on-error: true

- name: Build Project
run: dotnet build --configuration DebugOpt --no-restore /p:WarningsAsErrors=nullable /m

Expand Down
26 changes: 25 additions & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,40 @@ jobs:
git config --global user.email "${{ vars.CHANGELOG_EMAIL }}"
shell: bash

- name: Setup Node
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Cache Dependencies
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-changelog-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
continue-on-error: true

- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the State of Dependencies
run: |
cd "Tools/changelogs"
npm list
shell: bash
continue-on-error: true

- name: Install Dependencies
run: |
cd "Tools/changelogs"
npm install
shell: bash
continue-on-error: true

- name: Generate Changelog
run: |
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/test-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ jobs:
- name: Install dependencies
run: dotnet restore

- name: Cache Build
id: cache-release
uses: actions/cache@v3
env:
cache-name: cache-build-release
with:
path: bin
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-build-release-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-build-release
continue-on-error: true

- name: Build Packaging
run: dotnet build Content.Packaging --configuration Release --no-restore /m

Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/yaml-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,37 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]

- name: Setup submodule
run: |
git submodule update --init --recursive

- name: Pull engine updates
uses: space-wizards/[email protected]

- name: Update Engine Submodules
run: |
cd RobustToolbox/
git submodule update --init --recursive

- name: Setup .NET Core
uses: actions/[email protected]
with:
dotnet-version: 8.0.100

- name: Install dependencies
run: dotnet restore

- name: Cache Build
id: cache-release
uses: actions/cache@v3
with:
path: |
bin
key: ${{ runner.os }}-build-Release

- name: Build
run: dotnet build --configuration Release --no-restore /p:WarningsAsErrors= /m

- name: Run Linter
run: dotnet run --project Content.YAMLLinter/Content.YAMLLinter.csproj --no-build
Loading