-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (58 loc) · 1.56 KB
/
build.yml
File metadata and controls
71 lines (58 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Build Binaries
on:
push:
tags:
- 'v*'
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
build:
strategy:
matrix:
include:
- os: macos-latest
arch: arm64
artifact: atlassian-local-cli-macos-arm64
- os: macos-15
arch: x86_64
artifact: atlassian-local-cli-macos-x86_64
- os: ubuntu-latest
arch: x86_64
artifact: atlassian-local-cli-linux-x86_64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
with:
version: "latest"
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies
run: uv sync
- name: Build binary
run: uv run pyinstaller --onefile --name ${{ matrix.artifact }} main.py
- name: Verify binary
run: ./dist/${{ matrix.artifact }} --help
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: dist/${{ matrix.artifact }}
release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: Make binaries executable
run: chmod +x artifacts/*
- uses: softprops/action-gh-release@v2
with:
files: artifacts/*
generate_release_notes: true