try again on rktboot update for immutable-vector
#1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Snapshot Generation | |
on: | |
push: | |
branches: | |
- master | |
# Only run at most one snapshot action | |
# https://docs.github.com/en/enterprise-cloud@latest/actions/using-jobs/using-concurrency | |
# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
create-installer: | |
runs-on: ubuntu-22.04 | |
if: github.repository == 'racket/racket' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Cleanup # this is only needed in `act` testing | |
run: | | |
rm -rf ~/.racket/ | |
- uses: Bogdanp/[email protected] | |
with: | |
architecture: 'x64' | |
# FIXME: use the binary s3-sync pkg | |
distribution: 'full' | |
variant: 'CS' | |
version: '7.7' | |
packages: 's3-sync' | |
- name: Install pkg dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y libffi-dev unzip libfindbin-libs-perl | |
- name: Building | |
env: | |
DISTRO_BUILD_SITE_DEST: "${{ runner.temp }}/site-dest/" | |
run: | | |
export cpus=$(grep -c ^processor /proc/cpuinfo) | |
export HERE=`pwd` | |
make snapshot-site CONFIG=".github/workflows/site-small.rkt" -j $((cpus+1)) | |
- name: S3 Sync | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWSAccessKeyID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWSSecretKey }} | |
run: | | |
ls -l ${{ runner.temp }}/site-dest/ | |
raco s3-sync --acl public-read --web --redirects-links ${{ runner.temp }}/site-dest/ s3://ci-snapshot.racket-lang.org/ |