Built Racket BC installer in CI, upload to S3.
This commit is contained in:
parent
8eab18465c
commit
4662141ffc
47
.github/workflows/ci-push.yml
vendored
47
.github/workflows/ci-push.yml
vendored
|
@ -619,3 +619,50 @@ jobs:
|
|||
with:
|
||||
name: scanbuild-cs-${{ github.sha }}
|
||||
path: racketcs-report-${{ github.sha }}.tar.bz2
|
||||
|
||||
create-installer3m:
|
||||
runs-on: ubuntu-18.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 10
|
||||
- name: Install pkg dependencies
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y libffi-dev unzip python libxml2-dev libfindbin-libs-perl make gcc g++ git uuid-dev
|
||||
- uses: Bogdanp/setup-racket@v0.7
|
||||
with:
|
||||
architecture: 'x64'
|
||||
distribution: 'full'
|
||||
variant: 'regular'
|
||||
version: 'current'
|
||||
|
||||
- name: Create site.rkt
|
||||
run: |
|
||||
which racket
|
||||
echo "#lang distro-build/config" > ${{ runner.temp }}/site.rkt
|
||||
echo "(machine #:racket \"/usr/bin/racket\" #:versionless? #true #:pkgs (list))" >> ${{ runner.temp }}/site.rkt
|
||||
cat ${{ runner.temp }}/site.rkt
|
||||
- name: Building
|
||||
run: |
|
||||
export cpus=$(grep -c ^processor /proc/cpuinfo)
|
||||
make installers RACKET=/usr/bin/racket CONFIG="${{ runner.temp }}/site.rkt" -j $((cpus+1))
|
||||
mv bundle/ ${{ github.sha }}/
|
||||
- uses: actions/upload-artifact@v1
|
||||
if: always()
|
||||
with:
|
||||
name: racket3m-installer-${{ github.sha }}
|
||||
path: ${{ github.sha }}/racket-x86_64-linux.sh
|
||||
|
||||
|
||||
- name: S3 Sync
|
||||
uses: jakejarvis/s3-sync-action@v0.5.1
|
||||
with:
|
||||
args: --acl public-read --exclude '*' --include '${{ github.sha }}/racket-x86_64-linux.sh'
|
||||
env:
|
||||
AWS_S3_BUCKET: snapshot.racket-lang.org
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWSAccessKeyID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWSSecretKey }}
|
||||
DEST_DIR: 'ci-snapshots/'
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user