Skip to content

Commit

Permalink
com.utilities.rest 3.2.2 (#85)
Browse files Browse the repository at this point in the history
- com.utilities.async -> 2.1.7
- com.utilities.extensions -> 1.1.16
- Added `DownloadCacheDirectory` Tests and clarified usage in docs
  • Loading branch information
StephenHodgson authored Aug 17, 2024
1 parent c3e1429 commit 6dfbfbb
Show file tree
Hide file tree
Showing 18 changed files with 540 additions and 54 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/unity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Unity Build And Test
on:
schedule:
- cron: '0 0 * * 0' # Every Sunday at midnight
push:
branches:
- 'main'
pull_request:
branches:
- '*'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
checks: write
pull-requests: write
jobs:
build:
env:
UNITY_PROJECT_PATH: ''
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
unity-versions:
- 2021.3.42f1 (f1197811e8ce)
- 2022.3.40f1 (cbdda657d2f0)
- 6000.0.13f1 (53a692e3fca9)
include:
- os: ubuntu-latest
build-target: StandaloneLinux64
- os: windows-latest
build-target: StandaloneWindows64
- os: macos-13
build-target: StandaloneOSX
steps:
- uses: actions/checkout@v4

- uses: RageAgainstThePixel/unity-setup@v1
with:
unity-version: ${{ matrix.unity-versions }}
build-targets: ${{ matrix.build-target }}
- uses: RageAgainstThePixel/activate-unity-license@v1
with:
license: 'Personal'
username: ${{ secrets.UNITY_USERNAME }}
password: ${{ secrets.UNITY_PASSWORD }}
- uses: RageAgainstThePixel/unity-action@v1
name: '${{ matrix.build-target }}-Validate'
with:
log-name: '${{ matrix.build-target }}-Validate'
args: '-quit -nographics -batchmode -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.ValidateProject -importTMProEssentialsAsset'
- uses: RageAgainstThePixel/unity-action@v1
name: '${{ matrix.build-target }}-Test'
with:
log-name: '${{ matrix.build-target }}-Test'
build-target: ${{ matrix.build-target }}
args: '-nographics -batchmode -runTests -testPlatform EditMode -testResults "${{ github.workspace }}/Logs/${{ matrix.build-target }}-results.xml"'
- uses: actions/upload-artifact@v4
if: always() || failure()
with:
name: ${{ matrix.unity-versions }} ${{ matrix.build-target }}-Test-Results
path: '${{ github.workspace }}/**/*.xml'
- uses: RageAgainstThePixel/unity-action@v1
name: '${{ matrix.build-target }}-Build'
with:
log-name: '${{ matrix.build-target }}-Build'
args: '-quit -nographics -batchmode -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.StartCommandLineBuild'
- uses: actions/upload-artifact@v4
if: always() || failure()
with:
name: ${{ matrix.unity-versions }} ${{ matrix.build-target }}-Build
path: '${{ github.workspace }}/**/*.log'
3 changes: 0 additions & 3 deletions .github/workflows/upm-subtree-split.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
name: upm-subtree-split

on:
push:
branches:
- main

jobs:
upm-subtree-split:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: RageAgainstThePixel/upm-subtree-split@v1
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,15 @@ response.Validate(debug: true);

#### Caching

You can set the parent directory of the download cache to one of the following predefined locations:

- `Application.temporaryCachePath` (default)
- `Application.persistentDataPath`
- `Application.dataPath`
- `Application.streamingAssetsPath`

The actual cache directory will be a subfolder named `download_cache` inside of the parent `DownloadCacheDirectory`.

```csharp
// cache directory defaults to {Application.temporaryCachePath}/download_cache/
Debug.Log(Rest.DownloadCacheDirectory);
Expand Down
Loading

0 comments on commit 6dfbfbb

Please sign in to comment.