chore: remove debugging, build

This commit is contained in:
xHyroM 2022-07-12 09:29:03 +02:00
parent 9bbc376c40
commit bf0dbd9f81
3 changed files with 11 additions and 9 deletions

View File

@ -26,4 +26,14 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Try bun
run: bun add types
run: bun add types
test-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Setup Bun
run: curl https://bun.sh/install | bash
- name: Try bun
run: bun

View File

@ -4,16 +4,12 @@ import { addPath, info } from '@actions/core';
import getAsset from './getAsset.js';
import getHomeDir from './getHomeDir.js';
import { join } from 'path';
import { readdirSync } from 'fs';
export default async (release) => {
const asset = getAsset(release.assets);
const path = join(getHomeDir(), '.bun', 'bin', asset.name);
console.log(path);
const cache = find('bun', release.version) || await restoreCache([path], `bun-${process.platform}-${asset.name}-${release.version}`);
if (cache) {
info(`Using cached Bun installation from ${cache}.`);
console.log(path);
console.log(readdirSync(path));
addPath(path);
return;
}

View File

@ -5,17 +5,13 @@ import { addPath, info } from '@actions/core';
import getAsset from './getAsset.js';
import getHomeDir from './getHomeDir.js';
import { join } from 'path';
import { readdirSync } from 'fs';
export default async(release: Release) => {
const asset = getAsset(release.assets);
const path = join(getHomeDir(), '.bun', 'bin', asset.name);
console.log(path);
const cache = find('bun', release.version) || await restoreCache([path], `bun-${process.platform}-${asset.name}-${release.version}`);
if (cache) {
info(`Using cached Bun installation from ${cache}.`);
console.log(path);
console.log(readdirSync(path));
addPath(path);
return;
}