Skip to content

Commit

Permalink
Merge pull request #81 from damirka/master
Browse files Browse the repository at this point in the history
adds .tgz to the list
  • Loading branch information
jaxxstorm authored May 17, 2024
2 parents 71d17cb + b02c8b7 commit b8d4401
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,19 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: promtool --version
sui:
strategy:
matrix:
version: [ "latest" ]
runs-on: [ "ubuntu-latest" ]
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v1
- run: npm ci
- run: npm run build
- uses: ./
with:
repo: MystenLabs/sui
platform: ubuntu
cache: enable
- run: sui --version
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function run() {
let extMatchRegexForm = "";
if (extMatching) {
if (extension === "") {
extMatchRegexForm = "\.(tar.gz|zip)";
extMatchRegexForm = "\.(tar.gz|zip|tgz)";
core.info(`==> Using default file extension matching: ${extMatchRegexForm}`);
}
else {
Expand Down
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async function run() {
let extMatchRegexForm = "";
if (extMatching) {
if (extension === "") {
extMatchRegexForm = "\.(tar.gz|zip)";
extMatchRegexForm = "\.(tar.gz|zip|tgz)";
core.info(`==> Using default file extension matching: ${extMatchRegexForm}`);
} else {
extMatchRegexForm = extension;
Expand All @@ -134,7 +134,7 @@ async function run() {
osArch: osArch,
osPlatform: osPlatform
};

let dest = toolPath(toolInfo);
// If the user has specified a custom location where the binaries are in the release
// asset, we need to use modify the default path, joining the custom folder to the
Expand Down Expand Up @@ -334,7 +334,7 @@ function getCacheDirectory() {
}

function getExtractFn(assetName: any) {
if (assetName.endsWith('.tar.gz') || assetName.endsWith('.tar.bz2')) {
if (assetName.endsWith('.tar.gz') || assetName.endsWith('.tar.bz2') || assetName.endsWith('.tgz')) {
return tc.extractTar;
} else if (assetName.endsWith('.zip')) {
return tc.extractZip;
Expand Down

0 comments on commit b8d4401

Please sign in to comment.