diff options
author | 2023-03-04 19:01:42 -0800 | |
---|---|---|
committer | 2023-03-04 19:01:42 -0800 | |
commit | a7cdd492440abee78624170161f57b3ac3c07d8f (patch) | |
tree | 6498c9ac810f039c2b3b8f4524d16a04fdbcfac6 | |
parent | 0b4e7179b578f0a07111ea15b76725c9682c08c9 (diff) | |
download | bun-a7cdd492440abee78624170161f57b3ac3c07d8f.tar.gz bun-a7cdd492440abee78624170161f57b3ac3c07d8f.tar.zst bun-a7cdd492440abee78624170161f57b3ac3c07d8f.zip |
Artifact version
-rw-r--r-- | .github/workflows/run-test-manually.yml | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/.github/workflows/run-test-manually.yml b/.github/workflows/run-test-manually.yml index 80b533619..4790ba61d 100644 --- a/.github/workflows/run-test-manually.yml +++ b/.github/workflows/run-test-manually.yml @@ -9,6 +9,10 @@ on: required: true default: "canary" type: string + artifact: + description: "Artifact" + required: false + type: string use_bun: description: "Use Bun?" required: true @@ -31,12 +35,27 @@ jobs: uses: actions/checkout@v3 with: submodules: false - - id: install - name: Install + - id: install-npm + name: Install (npm) + if: ${{github.event.inputs.artifact == ''}} run: | npm install @oven/bun-${{matrix.tag}}@${{github.event.inputs.version}} chmod +x node_modules/@oven/bun-${{matrix.tag}}/bin/bun sudo cp node_modules/@oven/bun-${{matrix.tag}}/bin/bun /usr/bin/bun + - id: download-artifact + name: Download (artifact) + if: ${{github.event.inputs.artifact != ''}} + uses: actions/download-artifact@v2 + with: + name: ${{github.event.inputs.artifact}} + path: ${{runner.temp}}/bun.zip + - id: install-artifact + name: Install (artifact) + if: ${{github.event.inputs.artifact != ''}} + run: | + unzip ${{runner.temp}}/bun.zip -d ${{runner.temp}} + chmod +x ${{runner.temp}}/bun + sudo cp ${{runner.temp}}/bun /usr/bin/bun - id: test name: Test if: ${{github.event.inputs.use_bun == 'true'}} |