Skip to content

Commit 66e9384

Browse files
committed
Update GitHub action CI files.
1 parent 955313e commit 66e9384

File tree

2 files changed

+6
-96
lines changed

2 files changed

+6
-96
lines changed

.rubisco/build.yaml

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -52,74 +52,3 @@ steps:
5252
"--outdir=dist",
5353
"--verbose",
5454
]
55-
56-
- name: 🛠️ Build standalone binary distribution
57-
run:
58-
[
59-
"python",
60-
"-m",
61-
"nuitka",
62-
"--standalone",
63-
"--warn-unusual-code",
64-
"--jobs=${{ nproc }}",
65-
"--output-filename=${{ project.name }}",
66-
"--output-dir=build",
67-
"--show-progress",
68-
"--show-memory",
69-
"--show-modules",
70-
"--windows-icon-from-ico=${{ icon_file }}",
71-
"--macos-app-icon=${{ icon_file }}",
72-
"--linux-icon=${{ icon_file }}",
73-
"--company-name=${{ group }}",
74-
"--product-name=${{ project.name }}",
75-
"--file-version=${{ project.version }}.0",
76-
"--product-version=${{ project.version }}",
77-
"--file-description=${{ project.description }} main executable",
78-
"--copyright=${{ copyright }}",
79-
"${{ project.name }}",
80-
]
81-
82-
- name: 🛠️ Build onefile standalone binary distribution
83-
run:
84-
[
85-
"python",
86-
"-m",
87-
"nuitka",
88-
"--onefile",
89-
"--standalone",
90-
"--warn-unusual-code",
91-
"--jobs=${{ nproc }}",
92-
"--output-filename=${{ project.name }}",
93-
"--output-dir=build",
94-
"--show-progress",
95-
"--show-memory",
96-
"--show-modules",
97-
"--windows-icon-from-ico=${{ icon_file }}",
98-
"--macos-app-icon=${{ icon_file }}",
99-
"--linux-icon=${{ icon_file }}",
100-
"--company-name=${{ group }}",
101-
"--product-name=${{ project.name }}",
102-
"--file-version=${{ project.version }}.0",
103-
"--product-version=${{ project.version }}",
104-
"--file-description=${{ project.description }} main executable",
105-
"--copyright=${{ copyright }}",
106-
"${{ project.name }}",
107-
]
108-
109-
- name: 📦 Rename the distribution directory
110-
copy: build/${{ project.name }}.dist
111-
to: ${{ project.name }}-standalone-${{ host.machine }}-${{ project.version }}
112-
113-
- name: 📦 Copy files to distribution directory
114-
copy: LICENSE
115-
to: ${{ project.name }}-standalone-${{ host.machine }}-${{ project.version }}/LICENSE
116-
117-
- name: 📦 Packing the standalone distribution
118-
compress: ${{ project.name }}-standalone-${{ host.machine }}-${{ project.version }}
119-
to: dist/${{ project.name }}-standalone-${{ host.machine }}-${{ project.version }}
120-
format: [zip, tar.xz]
121-
122-
- name: 📦 Packing the onefile standalone distribution
123-
compress: build/${{ project.name }}
124-
to: dist/${{ project.name }}-onefile-standalone-${{ host.machine }}-${{ project.version }}
125-
format: [zip, tar.xz]

action.yml

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,6 @@ outputs:
2828
runs:
2929
using: composite
3030
steps:
31-
# Setup compress utilities: p7zip, gzip, tar, xz, zip.
32-
- name: 📁 Setup compress utilities. (Ubuntu)
33-
if: runner.os == 'Linux'
34-
run: |
35-
sudo apt-get update
36-
sudo apt-get install p7zip-full gzip tar xz-utils zip -y
37-
shell: pwsh
38-
39-
- name: 📁 Setup compress utilities. (Windows)
40-
if: runner.os == 'Windows'
41-
run: |
42-
choco install 7zip.portable gzip zip --yes
43-
shell: pwsh
44-
45-
- name: 📁 Setup compress utilities. (macOS)
46-
if: runner.os == 'macOS'
47-
run: |
48-
brew install p7zip gzip xz zip
49-
shell: pwsh
50-
5131
# Setup other utilities: curl, wget.
5232
- name: 📁 Setup other utilities. (Ubuntu)
5333
if: runner.os == 'Linux'
@@ -71,10 +51,10 @@ runs:
7151
- name: 📁 Setup Python.
7252
uses: actions/setup-python@v5
7353
with:
74-
python-version: "3.12"
54+
python-version: "3.13"
7555

7656
# Setup original C/C++ toolchain: llvm, clang, cmake, ninja.
77-
- name: 📁 Setup C/C++ toolchain. (Ubuntu)
57+
- name: 📁 Setup C/C++ toolchain. (Linux)
7858
if: runner.os == 'Linux'
7959
run: |
8060
sudo apt-get install llvm clang cmake ninja-build -y
@@ -94,7 +74,7 @@ runs:
9474

9575
- name: 🧳 Setup MSVC. (Windows)
9676
if: runner.os == 'Windows'
97-
uses: microsoft/setup-msbuild@v1
77+
uses: microsoft/setup-msbuild@v2
9878

9979
- name: 🧳 Setup XCode. (macOS)
10080
if: runner.os == 'macOS'
@@ -127,6 +107,7 @@ runs:
127107
- name: 📁 Setup Rubisco.
128108
run: |
129109
Set-Location "$env:GITHUB_ACTION_PATH"
130-
pwsh -File "$env:GITHUB_ACTION_PATH/dist-tools/build.ps1"
131-
Write-Output "$env:GITHUB_ACTION_PATH/dist/bin" >> $env:GITHUB_PATH
110+
python -m rubisco build
111+
pip install --upgrade pip
112+
pip install dist/*.whl
132113
shell: pwsh

0 commit comments

Comments
 (0)