Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/ci-scripts/build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ act_bin="$(find "$platform_dir" -type f -name 'act*' -print -quit)"
if [[ -z "$act_bin" ]]; then
echo "WARNING: Could not locate act binary inside $ASSET" >&2
else
cp "$act_bin" "act/act"
chmod +x "act/act"
cp "$act_bin" "bin/"
fi

# Copy README and LICENSE if they exist
Expand All @@ -65,3 +64,4 @@ rm -rf dist
uv build --wheel
uvx wheel tags --remove --platform-tag "$PLATFORM" dist/*.whl
mv dist/*.whl wheels/
rm -f bin/*
6 changes: 6 additions & 0 deletions .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,24 @@ jobs:

- name: Build Windows arm64
continue-on-error: true
env:
SYS_PLATFORM: win32
run: .github/ci-scripts/build.bash
-a assets/act_Windows_arm64.zip
-p win_arm64

- name: Build Windows 32-bit
continue-on-error: true
env:
SYS_PLATFORM: win32
run: .github/ci-scripts/build.bash
-a assets/act_Windows_i386.zip
-p win32

- name: Build Windows 64-bit
continue-on-error: true
env:
SYS_PLATFORM: win32
run: .github/ci-scripts/build.bash
-a assets/act_Windows_x86_64.zip
-p win_amd64
Expand Down
12 changes: 0 additions & 12 deletions act/__init__.py

This file was deleted.

File renamed without changes.
9 changes: 2 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@ readme = "README.md"
license = "MIT"
requires-python = ">=3"

[project.scripts]
act = "act:main"

[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
include-package-data = true
packages = ["act"]
[tool.setuptools.package-data]
act = ["act"]
packages = []

[tool.setuptools.dynamic]
version = {file = ["VERSION"]}
12 changes: 12 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import glob
import os
import sys

import setuptools

if sys.platform == "win32" or os.getenv("SYS_PLATFORM") == "win32":
data_files = [("Scripts", glob.glob("bin/*.exe"))]
else:
data_files = [("bin", glob.glob("bin/*"))]

setuptools.setup(data_files=data_files)
Loading