File tree Expand file tree Collapse file tree 1 file changed +17
-12
lines changed
Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,17 @@ jobs:
1111 runs-on : ${{ matrix.os }}
1212 strategy :
1313 matrix :
14- os : ["windows-latest", "ubuntu-latest", "macos-13", "macos-latest"]
14+ os :
15+ [
16+ " windows-latest" ,
17+ " ubuntu-24.04" ,
18+ " ubuntu-24.04-arm" ,
19+ " macos-13" ,
20+ " macos-latest" ,
21+ ]
1522 steps :
1623 - name : Checkout
1724 uses : actions/checkout@v4
18- - name : Setup vars
19- id : setup-vars
20- run : |
21- grep "python" "mise.toml" | perl -pe 's/[ "]+//g' >> $GITHUB_OUTPUT
2225 - name : Set filename
2326 uses : actions/github-script@v7
2427 id : set-filename
@@ -34,17 +37,19 @@ jobs:
3437 }
3538 result-encoding : string
3639 - name : Set type
40+ uses : actions/github-script@v7
3741 id : set-type
38- run : |
39- if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
40- echo "result=zip" >> $GITHUB_OUTPUT
41- else
42- echo "result=tar" >> $GITHUB_OUTPUT
43- fi
42+ with :
43+ script : |
44+ if ('${{ matrix.os }}' === 'windows-latest') {
45+ return 'zip';
46+ } else {
47+ return 'tar';
48+ }
4449 - name : Setup Python
4550 uses : actions/setup-python@v5
4651 with :
47- python-version : ${{ steps.setup-vars.outputs.python }}
52+ python-version : " 3.11 "
4853 - name : Install dependencies
4954 run : |
5055 python -m pip install --upgrade pip
You can’t perform that action at this time.
0 commit comments