Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rossmacarthur committed Jul 10, 2024
1 parent 945d753 commit 017f606
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
name: ${{ matrix.crate.name }}
env:
ACTIONS_STEP_DEBUG: true
RUNNER_DEBUG: '1'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Test
run: which $(printf ${{ matrix.crate.name }} | tr '[:upper:]' '[:lower:]')
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 15 additions & 8 deletions setup-crate/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import * as core from "@actions/core";
import * as tc from "@actions/tool-cache";
import * as types from "@octokit/types"
import { Octokit } from "@octokit/rest";
import { promises as fs, constants as fs_constants } from "fs";
import * as path from "path";
import * as semver from "semver";
import {
constants as fs_constants,
promises as fs,
} from 'fs';
import * as path from 'path';
import * as semver from 'semver';

import * as core from '@actions/core';
import * as tc from '@actions/tool-cache';
import { Octokit } from '@octokit/rest';

/**
* @returns {string[]} possible Rust target specifiers for the current platform.
Expand Down Expand Up @@ -91,6 +94,7 @@ async function getRelease(tool: Tool, options?: Options): Promise<Release> {
const targets = getTargets();
const { owner, name, versionSpec } = tool;
const octokit = new Octokit(options);
core.info(`Possible targets for current platform: ${targets.join(", ")}`);
return octokit
.paginate(
octokit.repos.listReleases,
Expand Down Expand Up @@ -164,7 +168,10 @@ async function handleBadBinaryPermissions(
*
* @returns the directory containing the tool binary.
*/
export async function checkOrInstallTool(tool: Tool, options?: Options): Promise<InstalledTool> {
export async function checkOrInstallTool(
tool: Tool,
options?: Options
): Promise<InstalledTool> {
const { name, versionSpec } = tool;

// first check if we have previously downloaded the tool
Expand Down

0 comments on commit 017f606

Please sign in to comment.