File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 2929 needs : test
3030 runs-on : ${{ matrix.os }}
3131 strategy :
32- matrix :
33- os : [ubuntu-latest, windows-latest, macos-latest]
32+ matrix :
33+ include :
34+ - os : ubuntu-latest
35+ platform : linux
36+ - os : windows-latest
37+ platform : windows
38+ - os : macos-latest
39+ platform : darwin
3440
3541 steps :
3642 - uses : actions/checkout@v4
@@ -46,13 +52,13 @@ jobs:
4652 pip install pyinstaller
4753
4854 - name : Build binary
49- run : python scripts/build_binaries.py
55+ run : python scripts/build_binaries.py --platform ${{ matrix.platform }}
5056
5157 - name : Upload artifacts
5258 uses : actions/upload-artifact@v4
5359 with :
54- name : binaries-${{ matrix.os }}
55- path : dist/casbin-python-cli-*
60+ name : binaries-${{ matrix.platform }}
61+ path : dist/casbin-python-cli-${{ matrix.platform }}*
5662
5763 release :
5864 needs : [test, build-binaries]
8591 - name : Move binaries to dist
8692 run : |
8793 mkdir -p dist
88- find artifacts -name "casbin-python-cli-*" -exec cp {} dist/ \;
94+ find artifacts -name "casbin-python-cli-*" -exec cp {} dist/ \;
8995
9096 - name : Semantic Release
9197 env :
You can’t perform that action at this time.
0 commit comments