Skip to content
This repository was archived by the owner on May 2, 2026. It is now read-only.

Commit b550956

Browse files
committed
fix: update Ubuntu version in release binaries workflow to 22.04
1 parent e382e4c commit b550956

1 file changed

Lines changed: 144 additions & 144 deletions

File tree

Lines changed: 144 additions & 144 deletions
Original file line numberDiff line numberDiff line change
@@ -1,152 +1,152 @@
11
name: Build Release Binaries
22

33
on:
4-
release:
5-
types: [published]
6-
workflow_dispatch:
7-
inputs:
8-
tag:
9-
description: "Tag/version to build (leave empty for latest)"
10-
required: false
11-
type: string
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
tag:
9+
description: "Tag/version to build (leave empty for latest)"
10+
required: false
11+
type: string
1212

1313
permissions:
14-
contents: write
14+
contents: write
1515

1616
jobs:
17-
build:
18-
strategy:
19-
fail-fast: false
20-
matrix:
21-
include:
22-
- os: ubuntu-latest
23-
target: linux
24-
asset_name: viu-linux-x86_64
25-
executable: viu
26-
- os: windows-latest
27-
target: windows
28-
asset_name: viu-windows-x86_64.exe
29-
executable: viu.exe
30-
- os: macos-latest
31-
target: macos
32-
asset_name: viu-macos-x86_64
33-
executable: viu
34-
35-
runs-on: ${{ matrix.os }}
36-
37-
steps:
38-
- name: Checkout repository
39-
uses: actions/checkout@v4
40-
with:
41-
ref: ${{ github.event.inputs.tag || github.ref }}
42-
43-
- name: Set up Python
44-
uses: actions/setup-python@v5
45-
with:
46-
python-version: "3.11"
47-
48-
- name: Install uv
49-
uses: astral-sh/setup-uv@v3
50-
with:
51-
enable-cache: true
52-
53-
- name: Install system dependencies (Linux)
54-
if: runner.os == 'Linux'
55-
run: |
56-
sudo apt-get update
57-
sudo apt-get install -y libdbus-1-dev libglib2.0-dev
58-
59-
- name: Install dependencies
60-
run: uv sync --all-extras --all-groups
61-
62-
- name: Build executable with PyInstaller
63-
run: uv run pyinstaller bundle/pyinstaller.spec --distpath dist --workpath build/pyinstaller --clean
64-
65-
- name: Rename executable
66-
shell: bash
67-
run: mv dist/${{ matrix.executable }} dist/${{ matrix.asset_name }}
68-
69-
- name: Upload artifact
70-
uses: actions/upload-artifact@v4
71-
with:
72-
name: ${{ matrix.asset_name }}
73-
path: dist/${{ matrix.asset_name }}
74-
if-no-files-found: error
75-
76-
- name: Upload to Release
77-
if: github.event_name == 'release'
78-
uses: softprops/action-gh-release@v2
79-
with:
80-
files: dist/${{ matrix.asset_name }}
81-
env:
82-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83-
84-
# Build for macOS ARM (Apple Silicon)
85-
build-macos-arm:
86-
runs-on: macos-14
87-
88-
steps:
89-
- name: Checkout repository
90-
uses: actions/checkout@v4
91-
with:
92-
ref: ${{ github.event.inputs.tag || github.ref }}
93-
94-
- name: Set up Python
95-
uses: actions/setup-python@v5
96-
with:
97-
python-version: "3.11"
98-
99-
- name: Install uv
100-
uses: astral-sh/setup-uv@v3
101-
with:
102-
enable-cache: true
103-
104-
- name: Install dependencies
105-
run: uv sync --all-extras --all-groups
106-
107-
- name: Build executable with PyInstaller
108-
run: uv run pyinstaller bundle/pyinstaller.spec --distpath dist --workpath build/pyinstaller --clean
109-
110-
- name: Rename executable
111-
run: mv dist/viu dist/viu-macos-arm64
112-
113-
- name: Upload artifact
114-
uses: actions/upload-artifact@v4
115-
with:
116-
name: viu-macos-arm64
117-
path: dist/viu-macos-arm64
118-
if-no-files-found: error
119-
120-
- name: Upload to Release
121-
if: github.event_name == 'release'
122-
uses: softprops/action-gh-release@v2
123-
with:
124-
files: dist/viu-macos-arm64
125-
env:
126-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
127-
128-
# Create checksums after all builds complete
129-
checksums:
130-
needs: [build, build-macos-arm]
131-
runs-on: ubuntu-latest
17+
build:
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
include:
22+
- os: ubuntu-22.04
23+
target: linux
24+
asset_name: viu-linux-x86_64
25+
executable: viu
26+
- os: windows-latest
27+
target: windows
28+
asset_name: viu-windows-x86_64.exe
29+
executable: viu.exe
30+
- os: macos-latest
31+
target: macos
32+
asset_name: viu-macos-x86_64
33+
executable: viu
34+
35+
runs-on: ${{ matrix.os }}
36+
37+
steps:
38+
- name: Checkout repository
39+
uses: actions/checkout@v4
40+
with:
41+
ref: ${{ github.event.inputs.tag || github.ref }}
42+
43+
- name: Set up Python
44+
uses: actions/setup-python@v5
45+
with:
46+
python-version: "3.11"
47+
48+
- name: Install uv
49+
uses: astral-sh/setup-uv@v3
50+
with:
51+
enable-cache: true
52+
53+
- name: Install system dependencies (Linux)
54+
if: runner.os == 'Linux'
55+
run: |
56+
sudo apt-get update
57+
sudo apt-get install -y libdbus-1-dev libglib2.0-dev
58+
59+
- name: Install dependencies
60+
run: uv sync --all-extras --all-groups
61+
62+
- name: Build executable with PyInstaller
63+
run: uv run pyinstaller bundle/pyinstaller.spec --distpath dist --workpath build/pyinstaller --clean
64+
65+
- name: Rename executable
66+
shell: bash
67+
run: mv dist/${{ matrix.executable }} dist/${{ matrix.asset_name }}
68+
69+
- name: Upload artifact
70+
uses: actions/upload-artifact@v4
71+
with:
72+
name: ${{ matrix.asset_name }}
73+
path: dist/${{ matrix.asset_name }}
74+
if-no-files-found: error
75+
76+
- name: Upload to Release
13277
if: github.event_name == 'release'
133-
134-
steps:
135-
- name: Download all artifacts
136-
uses: actions/download-artifact@v4
137-
with:
138-
path: artifacts
139-
merge-multiple: true
140-
141-
- name: Generate checksums
142-
run: |
143-
cd artifacts
144-
sha256sum * > SHA256SUMS.txt
145-
cat SHA256SUMS.txt
146-
147-
- name: Upload checksums to Release
148-
uses: softprops/action-gh-release@v2
149-
with:
150-
files: artifacts/SHA256SUMS.txt
151-
env:
152-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
uses: softprops/action-gh-release@v2
79+
with:
80+
files: dist/${{ matrix.asset_name }}
81+
env:
82+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83+
84+
# Build for macOS ARM (Apple Silicon)
85+
build-macos-arm:
86+
runs-on: macos-14
87+
88+
steps:
89+
- name: Checkout repository
90+
uses: actions/checkout@v4
91+
with:
92+
ref: ${{ github.event.inputs.tag || github.ref }}
93+
94+
- name: Set up Python
95+
uses: actions/setup-python@v5
96+
with:
97+
python-version: "3.11"
98+
99+
- name: Install uv
100+
uses: astral-sh/setup-uv@v3
101+
with:
102+
enable-cache: true
103+
104+
- name: Install dependencies
105+
run: uv sync --all-extras --all-groups
106+
107+
- name: Build executable with PyInstaller
108+
run: uv run pyinstaller bundle/pyinstaller.spec --distpath dist --workpath build/pyinstaller --clean
109+
110+
- name: Rename executable
111+
run: mv dist/viu dist/viu-macos-arm64
112+
113+
- name: Upload artifact
114+
uses: actions/upload-artifact@v4
115+
with:
116+
name: viu-macos-arm64
117+
path: dist/viu-macos-arm64
118+
if-no-files-found: error
119+
120+
- name: Upload to Release
121+
if: github.event_name == 'release'
122+
uses: softprops/action-gh-release@v2
123+
with:
124+
files: dist/viu-macos-arm64
125+
env:
126+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
127+
128+
# Create checksums after all builds complete
129+
checksums:
130+
needs: [build, build-macos-arm]
131+
runs-on: ubuntu-latest
132+
if: github.event_name == 'release'
133+
134+
steps:
135+
- name: Download all artifacts
136+
uses: actions/download-artifact@v4
137+
with:
138+
path: artifacts
139+
merge-multiple: true
140+
141+
- name: Generate checksums
142+
run: |
143+
cd artifacts
144+
sha256sum * > SHA256SUMS.txt
145+
cat SHA256SUMS.txt
146+
147+
- name: Upload checksums to Release
148+
uses: softprops/action-gh-release@v2
149+
with:
150+
files: artifacts/SHA256SUMS.txt
151+
env:
152+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)