Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored Aug 11, 2024
1 parent 5d6213d commit 0662fbe
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ jobs:
# https://packaging.python.org/en/latest/specifications/platform-compatibility-tags/#platform-tag
# target=$(python -c 'import sysconfig; print(sysconfig.get_platform().replace("-", "_").replace(".", "_"))')
- { os: ubuntu-latest, target: linux_x86_64 }
- { os: macos-latest, target: macosx_10_9_universal2 }
- { os: macos-latest, target: macosx_11_0_arm64 }
- { os: macos-13, target: macosx_10_9_x86_64 }
- { os: windows-latest, target: win_amd64 }
defaults:
run:
Expand All @@ -93,15 +94,10 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- run: pip install -e .
- run: pip install pyinstaller
- run: bikeshed update
# https://pyinstaller.org/en/stable/feature-notes.html#macos-multi-arch-support
- run: |
pyinstaller -y --name=bikeshed --collect-all=bikeshed \
${{ (contains(matrix.target, 'universal2') && '--target-arch=universal2') || '' }} \
./bikeshed.py
- run: pyinstaller -y --name=bikeshed --collect-all=bikeshed ./bikeshed.py
- env:
target: ${{ matrix.target }}
run: |
Expand Down Expand Up @@ -135,20 +131,24 @@ jobs:
name: bikeshed-linux_x86_64
- uses: actions/download-artifact@v4
with:
name: bikeshed-macosx_10_9_universal2
name: bikeshed-macosx_10_9_x86_64
- uses: actions/download-artifact@v4
with:
name: bikeshed-macosx_11_0_arm64
- uses: actions/download-artifact@v4
with:
name: bikeshed-win_amd64
- run: |
version=$(cat bikeshed/semver.txt)
mkdir bikeshed-ape-$version
mv bikeshed-linux_x86_64-$version bikeshed-linux_x86_64
mv bikeshed-macosx_10_9_universal2-$version bikeshed-macosx_10_9_universal2
mv bikeshed-macosx_10_9_x86_64-$version bikeshed-macosx_10_9_x86_64
mv bikeshed-macosx_11_0_arm64-$version bikeshed-macosx_11_0_arm64
mv bikeshed-win_amd64-$version bikeshed-win_amd64
cosmoc++ -std=c++23 -fexceptions -DVERSION=\"$version\" -o bikeshed-ape-$version/bikeshed bikeshed-ape.cpp
rm bikeshed-ape-$version/bikeshed.aarch64.elf
rm bikeshed-ape-$version/bikeshed.com.dbg
zip -Ar bikeshed-ape-$version/bikeshed bikeshed-linux_x86_64 bikeshed-macosx_10_9_universal2 bikeshed-win_amd64
zip -Ar bikeshed-ape-$version/bikeshed bikeshed-linux_x86_64 bikeshed-macosx_10_9_x86_64 bikeshed-macosx_11_0_arm64 bikeshed-win_amd64
- run: |
version=$(cat bikeshed/semver.txt)
mkdir stage
Expand Down

0 comments on commit 0662fbe

Please sign in to comment.