Skip to content

Commit

Permalink
Add Github Actions workflow for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
dev0x13 committed Jul 13, 2023
1 parent 41e1588 commit e7394ad
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- main
pull_request:
- master

jobs:
build-and-test:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: macOS CI

on:
workflow_dispatch:
push:
branches:
- master

jobs:
build-and-test:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true

- name: Build wheel
run: python3 -m pip wheel .

- name: Install wheel
run: python3 -m pip install *.whl

- name: Install test requirements
run: python3 -m pip install -r test/requirements.txt

- name: Run tests
run: python3 -m pytest test/
3 changes: 1 addition & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- main
pull_request:
- master

jobs:
build-and-test:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Linux CI](https://github.com/dev0x13/pywuffs/actions/workflows/linux.yml/badge.svg)](https://github.com/dev0x13/pywuffs/actions/workflows/linux.yml)
[![Windows CI](https://github.com/dev0x13/pywuffs/actions/workflows/windows.yml/badge.svg)](https://github.com/dev0x13/pywuffs/actions/workflows/windows.yml)
[![macOS CI](https://github.com/dev0x13/pywuffs/actions/workflows/macos.yml/badge.svg)](https://github.com/dev0x13/pywuffs/actions/workflows/macos.yml)

This project is intended to enable using [Wuffs the Library](https://github.com/google/wuffs) from Python code. For now,
it only provides bindings for image decoding part of
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
BUILD_ARGS["msvc"] = ["/O3", "/DNDEBUG", "/arch:AVX"]
BUILD_ARGS["unix"] = UNIX_BUILD_ARGS

UNIX_LINK_ARGS = ["-Wl,--strip-all", "-flto", "-fno-fat-lto-objects"]
UNIX_LINK_ARGS = ["-flto", "-fno-fat-lto-objects"]
GCC_STRIP_FLAG = "-Wl,--strip-all"
LINK_ARGS = defaultdict(lambda: UNIX_LINK_ARGS)
LINK_ARGS["msvc"] = []
Expand Down

0 comments on commit e7394ad

Please sign in to comment.