update cc-related CI (#387)

* merge get-cc-url into get-version

* add `get-cc`

* fix

* fix again

* fix

* fix

* fix macos

* remove `apt update`

* fix macos

* rename `get-version` -> `get-info`

* rm unnecessary file
This commit is contained in:
Imple Lee
2021-10-17 14:23:36 +08:00
committed by GitHub
parent f9902a6ea5
commit 25b5f53f34
9 changed files with 125 additions and 147 deletions

View File

@@ -6,10 +6,13 @@ inputs:
dir:
required: false
default: '.'
temp-file:
required: false
default: temp.zip
runs:
using: "composite"
steps:
- run: curl -L ${{ inputs.url }} -o temp.zip
- run: curl -L ${{ inputs.url }} -o ${{ inputs.temp-file }}
shell: bash
- run: 7z x temp.zip -o${{ inputs.dir }}
- run: 7z x ${{ inputs.temp-file }} -o${{ inputs.dir }}
shell: bash