Skip to content

Commit

Permalink
Fix CI python version & add private maps
Browse files Browse the repository at this point in the history
  • Loading branch information
TheApplePieGod committed Jan 22, 2025
1 parent 173888d commit 3c563fe
Showing 1 changed file with 26 additions and 22 deletions.
48 changes: 26 additions & 22 deletions .github/workflows/release-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
id-token: write

steps:
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: 3.12

- name: Checkout branch
uses: actions/checkout@v3

Expand All @@ -45,31 +49,31 @@ jobs:
- name: Set up Google Cloud SDK
uses: 'google-github-actions/setup-gcloud@v1'

# TODO: private maps
#- name: Clone private maps
# if: ${{ env.IS_PUBLIC != 'YES' }}
# uses: actions/checkout@v3
# with:
# repository: battlecode/private-maps
# token: ${{ secrets.CI_REPOSITORY_CLONE_PAT }}
# path: private-maps
#
#- name: Inject private maps
# if: ${{ env.IS_PUBLIC != 'YES' }}
# run: |
# source="private-maps/$RELEASE_ARTIFACT_ID"
# dest="engine/src/main/battlecode/world/resources"
# if [ -d "$source" ]; then
# cp -r -i "$source/." "$dest/" < /dev/null &> private-maps-copy-log
# if [ -s "private-maps-copy-log" ]; then
# echo "FAILED! Public and private maps should not intersect."
# cat private-maps-copy-log
# exit 1
# fi
# fi
- name: Clone private maps
if: ${{ env.IS_PUBLIC != 'YES' }}
uses: actions/checkout@v3
with:
repository: battlecode/private-maps
token: ${{ secrets.CI_REPOSITORY_CLONE_PAT }}
path: private-maps

- name: Inject private maps
if: ${{ env.IS_PUBLIC != 'YES' }}
run: |
source="private-maps/$RELEASE_ARTIFACT_ID"
dest="battlecode25/maps"
if [ -d "$source" ]; then
cp -r -i "$source/." "$dest/" < /dev/null &> private-maps-copy-log
if [ -s "private-maps-copy-log" ]; then
echo "FAILED! Public and private maps should not intersect."
cat private-maps-copy-log
exit 1
fi
fi
- name: Build python package
run: |
python --version # Print python version
pip install --upgrade build
SETUPTOOLS_SCM_PRETEND_VERSION=${RELEASE_VERSION} python -m build
Expand Down

0 comments on commit 3c563fe

Please sign in to comment.