Skip to content

Commit

Permalink
update all workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
karlosss committed Oct 20, 2024
1 parent 7dfa680 commit 1292fcf
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/create_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ jobs:
os: [ ubuntu-latest, macos-13, macos-14 ]

steps:
- name: Set MACOSX_DEPLOYMENT_TARGET
run: |
if [[ ${{ matrix.os }} = macos-13 ]]
then
echo "MACOSX_DEPLOYMENT_TARGET=13.0" >> "$GITHUB_ENV"
elif [[ ${{ matrix.os }} = macos-14 ]]
then
echo "MACOSX_DEPLOYMENT_TARGET=14.0" >> "$GITHUB_ENV"
fi
- name: Checkout the repository
uses: actions/checkout@v4
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/pr_to_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, macos-14]
env:
MACOSX_DEPLOYMENT_TARGET: 13.0

steps:
- name: Set MACOSX_DEPLOYMENT_TARGET
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/push_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,19 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
os: [ ubuntu-latest, macos-13, macos-14 ]

steps:
- name: Set MACOSX_DEPLOYMENT_TARGET
run: |
if [[ ${{ matrix.os }} = macos-13 ]]
then
echo "MACOSX_DEPLOYMENT_TARGET=13.0" >> "$GITHUB_ENV"
elif [[ ${{ matrix.os }} = macos-14 ]]
then
echo "MACOSX_DEPLOYMENT_TARGET=14.0" >> "$GITHUB_ENV"
fi
- name: Checkout the repository
uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion src/bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ PYBIND11_MODULE(_swisspair, m) {
.def_readonly("is_bye", &Match::is_bye);

m.def("create_matches", &create_matches, "Creates a list of matches, ordered by the table number from the highest table. Power pairing guarantees the top 8 players to be paired according to their standing.");
}
}

0 comments on commit 1292fcf

Please sign in to comment.