Skip to content

Commit ae81651

Browse files
committed
release: server v2.0.0
1 parent 4a938be commit ae81651

File tree

1 file changed

+77
-77
lines changed

1 file changed

+77
-77
lines changed

.github/workflows/build-server.yaml

Lines changed: 77 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ jobs:
4242
include:
4343
- target: aarch64-apple-darwin
4444
build: macos
45-
os: macos-14-arm64
45+
os: macos-13
4646
arch: aarch64
47-
# - target: x86_64-apple-darwin
48-
# build: macos
49-
# os: macos-13
50-
# arch: x86_64
47+
- target: x86_64-apple-darwin
48+
build: macos
49+
os: macos-13
50+
arch: x86_64
5151

5252
runs-on: ${{ matrix.os }}
5353
steps:
@@ -82,78 +82,78 @@ jobs:
8282
name: server_${{ matrix.build }}_${{ matrix.arch }}
8383
path: out/*.zip
8484

85-
# build-for-windows:
86-
# name: Windows
87-
# needs: models
88-
# permissions:
89-
# contents: write
90-
# strategy:
91-
# fail-fast: false
92-
# matrix:
93-
# include:
94-
# - target: x86_64-pc-windows-msvc
95-
# build: windows
96-
# os: windows-2019
97-
# arch: x86_64
85+
build-for-windows:
86+
name: Windows
87+
needs: models
88+
permissions:
89+
contents: write
90+
strategy:
91+
fail-fast: false
92+
matrix:
93+
include:
94+
- target: x86_64-pc-windows-msvc
95+
build: windows
96+
os: windows-2019
97+
arch: x86_64
9898

99-
# runs-on: ${{ matrix.os }}
100-
# steps:
101-
# - uses: actions/checkout@v4
102-
# - name: Download Models
103-
# uses: actions/download-artifact@v4
104-
# with:
105-
# name: models
106-
# path: src-python/models
107-
# - name: Setup Python
108-
# uses: actions/setup-python@v5
109-
# with:
110-
# python-version: 3.10.11
111-
# cache: "pip"
112-
# cache-dependency-path: "**/requirements.txt"
113-
# - name: Install Python Dependencies
114-
# run: |
115-
# cd src-python
116-
# pip install -r requirements.txt
117-
# pip install -e .
118-
# cd ${{ github.workspace }}
119-
# - name: Build Server
120-
# shell: pwsh
121-
# run: |
122-
# python -m nuitka --standalone --assume-yes-for-downloads `
123-
# --mingw64 --windows-console-mode=disable `
124-
# --include-data-files="src-python/models/*.onnx=models/" `
125-
# --output-dir=out src-python/server.py
126-
# cd out/server.dist
127-
# Compress-Archive -Path * -DestinationPath "../server_${{ matrix.build }}_${{ matrix.arch }}.zip"
128-
# cd ${{ github.workspace }}
129-
# - name: Upload Server
130-
# uses: actions/upload-artifact@v4
131-
# with:
132-
# name: server_${{ matrix.build }}_${{ matrix.arch }}
133-
# path: out/*.zip
99+
runs-on: ${{ matrix.os }}
100+
steps:
101+
- uses: actions/checkout@v4
102+
- name: Download Models
103+
uses: actions/download-artifact@v4
104+
with:
105+
name: models
106+
path: src-python/models
107+
- name: Setup Python
108+
uses: actions/setup-python@v5
109+
with:
110+
python-version: 3.10.11
111+
cache: "pip"
112+
cache-dependency-path: "**/requirements.txt"
113+
- name: Install Python Dependencies
114+
run: |
115+
cd src-python
116+
pip install -r requirements.txt
117+
pip install -e .
118+
cd ${{ github.workspace }}
119+
- name: Build Server
120+
shell: pwsh
121+
run: |
122+
python -m nuitka --standalone --assume-yes-for-downloads `
123+
--mingw64 --windows-console-mode=disable `
124+
--include-data-files="src-python/models/*.onnx=models/" `
125+
--output-dir=out src-python/server.py
126+
cd out/server.dist
127+
Compress-Archive -Path * -DestinationPath "../server_${{ matrix.build }}_${{ matrix.arch }}.zip"
128+
cd ${{ github.workspace }}
129+
- name: Upload Server
130+
uses: actions/upload-artifact@v4
131+
with:
132+
name: server_${{ matrix.build }}_${{ matrix.arch }}
133+
path: out/*.zip
134134

135-
# release:
136-
# name: Release
137-
# needs: [models, build-for-macos, build-for-windows]
138-
# runs-on: ubuntu-latest
135+
release:
136+
name: Release
137+
needs: [models, build-for-macos, build-for-windows]
138+
runs-on: ubuntu-latest
139139

140-
# steps:
141-
# - uses: actions/checkout@v4
142-
# - name: Downoad Artifacts
143-
# uses: actions/download-artifact@v4
144-
# with:
145-
# pattern: server_*
146-
# path: dist
147-
# merge-multiple: true
148-
# - name: Release Server v${{ needs.models.outputs.version }}
149-
# uses: ncipollo/release-action@v1
150-
# with:
151-
# allowUpdates: true
152-
# token: ${{ secrets.GITHUB_TOKEN }}
153-
# name: Server v${{ needs.models.outputs.version }}
154-
# tag: server-v${{ needs.models.outputs.version }}
155-
# body: MagicMirror Server v${{ needs.models.outputs.version }}
156-
# draft: true
157-
# prerelease: false
158-
# removeArtifacts: true
159-
# artifacts: dist/*.zip
140+
steps:
141+
- uses: actions/checkout@v4
142+
- name: Downoad Artifacts
143+
uses: actions/download-artifact@v4
144+
with:
145+
pattern: server_*
146+
path: dist
147+
merge-multiple: true
148+
- name: Release Server v${{ needs.models.outputs.version }}
149+
uses: ncipollo/release-action@v1
150+
with:
151+
allowUpdates: true
152+
token: ${{ secrets.GITHUB_TOKEN }}
153+
name: Server v${{ needs.models.outputs.version }}
154+
tag: server-v${{ needs.models.outputs.version }}
155+
body: MagicMirror Server v${{ needs.models.outputs.version }}
156+
draft: true
157+
prerelease: false
158+
removeArtifacts: true
159+
artifacts: dist/*.zip

0 commit comments

Comments
 (0)