Skip to content

Commit

Permalink
Try using s3cmd for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Capostrophic committed Jan 30, 2025
1 parent e693d37 commit 066c3f9
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -503,20 +503,30 @@ Ubuntu_GCC_integration_tests_asan:
- ccache/
script:
- CI/before_install.osx.sh
- brew install [email protected]
- export CCACHE_BASEDIR="$(pwd)"
- export CCACHE_DIR="$(pwd)/ccache"
- mkdir -pv "${CCACHE_DIR}"
- ccache -z -M "${CCACHE_SIZE}"
- CI/before_script.osx.sh
- cd build; make -j $(sysctl -n hw.logicalcpu) package
- for dmg in *.dmg; do mv "$dmg" "${dmg%.dmg}_${CI_COMMIT_REF_NAME##*/}.dmg"; done
- aws --version
- brew install s3cmd
- s3cmd --version
- |
if [[ -n "${AWS_ACCESS_KEY_ID}" ]]; then
# Configure s3cmd
cat > ~/.s3cfg << EOF
[default]
access_key = ${AWS_ACCESS_KEY_ID}
secret_key = ${AWS_SECRET_ACCESS_KEY}
host_base = rgw.ctrl-c.liu.se
host_bucket = %(bucket)s.rgw.ctrl-c.liu.se
use_https = True
EOF
artifactDirectory="${CI_PROJECT_NAMESPACE//[\"<>|$'\t'\/\\?*]/_}/${CI_COMMIT_REF_NAME//[\"<>|$'\t'\/\\?*]/_}/${CI_COMMIT_SHORT_SHA//[\"<>|$'\t'\/\\?*]/_}-${CI_JOB_ID//[\"<>|$'\t'\/\\?*]/_}/"
for dmg in *.dmg; do
aws --endpoint-url https://rgw.ctrl-c.liu.se s3 cp "${dmg}" s3://openmw-artifacts/${artifactDirectory}
s3cmd put "${dmg}" s3://openmw-artifacts/${artifactDirectory}/
done
fi
- ccache -s
Expand Down

0 comments on commit 066c3f9

Please sign in to comment.