diff --git a/__tests__/cache-restore.test.ts b/__tests__/cache-restore.test.ts index ab25a72..19f4874 100644 --- a/__tests__/cache-restore.test.ts +++ b/__tests__/cache-restore.test.ts @@ -50,7 +50,7 @@ describe('cache-restore tests', () => { await restoreCache(lockFilePattern); - const expectedKey = `dotnet-cache-${process.env.RUNNER_OS}-hash`; + const expectedKey = `dotnet-cache-${process.env.RUNNER_OS}-${process.arch}-hash`; expect(jest.mocked(core.saveState)).toHaveBeenCalledWith( 'CACHE_KEY', expectedKey @@ -66,7 +66,7 @@ describe('cache-restore tests', () => { }); it('calls core.saveState("CACHE_RESULT") when cache.restoreCache() returns key', async () => { - const expectedKey = `dotnet-cache-${process.env.RUNNER_OS}-hash`; + const expectedKey = `dotnet-cache-${process.env.RUNNER_OS}-${process.arch}-hash`; jest.mocked(glob.hashFiles).mockResolvedValue('hash'); jest.mocked(cache.restoreCache).mockResolvedValue(expectedKey); diff --git a/externals/install-dotnet.sh b/externals/install-dotnet.sh index 42c201a..caa3ea4 100755 --- a/externals/install-dotnet.sh +++ b/externals/install-dotnet.sh @@ -327,6 +327,10 @@ get_machine_architecture() { echo "loongarch64" return 0 ;; + riscv64) + echo "riscv64" + return 0 + ;; esac fi