ci: build CS for iOS during PR CI
This commit is contained in:
parent
08fa24304e
commit
351c0047d6
32
.github/workflows/ci-pr.yml
vendored
32
.github/workflows/ci-pr.yml
vendored
|
@ -66,3 +66,35 @@ jobs:
|
||||||
raco test -l tests/db/all-tests
|
raco test -l tests/db/all-tests
|
||||||
raco test -c tests/stxparse
|
raco test -c tests/stxparse
|
||||||
raco test -c tests/syntax
|
raco test -c tests/syntax
|
||||||
|
- name: Tarball
|
||||||
|
run: tar -cvjf racketcs-macos-x64_git${{ github.sha }}.tar.bz2 racket
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: racketcs-macos-x64_git${{ github.sha }}
|
||||||
|
path: racketcs-macos-x64_git${{ github.sha }}.tar.bz2
|
||||||
|
|
||||||
|
build-ios:
|
||||||
|
runs-on: macos-latest
|
||||||
|
needs: buildtest-macos
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: racketcs-macos-x64_git${{ github.sha }}
|
||||||
|
path: ${{ github.workspace }}
|
||||||
|
- name: Untar host Racket
|
||||||
|
run: |
|
||||||
|
mkdir host-racket
|
||||||
|
tar -xvjf racketcs-macos-x64_git${{ github.sha }}.tar.bz2 -C host-racket --strip-components 1
|
||||||
|
- name: Build iOS Racket
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
mkdir -p racket/src/build-ios
|
||||||
|
pushd racket/src/build-ios
|
||||||
|
../configure \
|
||||||
|
--host=aarch64-apple-darwin \
|
||||||
|
--enable-ios=iPhoneOS \
|
||||||
|
--enable-racket=${{ github.workspace }}/host-racket/bin/racket \
|
||||||
|
--enable-scheme=${{ github.workspace }}/host-racket/src/build/cs/c
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
|
28
.github/workflows/ci-push_macos.yml
vendored
28
.github/workflows/ci-push_macos.yml
vendored
|
@ -162,6 +162,8 @@ jobs:
|
||||||
- name: Installing
|
- name: Installing
|
||||||
working-directory: ./racket/src
|
working-directory: ./racket/src
|
||||||
run: make -j $((cpus+1)) install
|
run: make -j $((cpus+1)) install
|
||||||
|
- name: Copying src/ into distro # ChezScheme build is needed by build-ios
|
||||||
|
run: cp -r racket/src racketcs/
|
||||||
- name: Tarballing
|
- name: Tarballing
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
run: tar -cvjf racketcs-macos-x64_git${{ github.sha}}.tar.bz2 racketcs
|
run: tar -cvjf racketcs-macos-x64_git${{ github.sha}}.tar.bz2 racketcs
|
||||||
|
@ -170,6 +172,32 @@ jobs:
|
||||||
name: racketcs-macos-x64_git${{ github.sha }}
|
name: racketcs-macos-x64_git${{ github.sha }}
|
||||||
path: ${{ github.workspace }}/racketcs-macos-x64_git${{ github.sha }}.tar.bz2
|
path: ${{ github.workspace }}/racketcs-macos-x64_git${{ github.sha }}.tar.bz2
|
||||||
|
|
||||||
|
build-ios:
|
||||||
|
runs-on: macos-latest
|
||||||
|
needs: build-racketcs
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: racketcs-macos-x64_git${{ github.sha }}
|
||||||
|
path: ${{ github.workspace }}
|
||||||
|
- name: Untar host Racket
|
||||||
|
run: |
|
||||||
|
mkdir host-racket
|
||||||
|
tar -xvjf racketcs-macos-x64_git${{ github.sha }}.tar.bz2 -C host-racket --strip-components 1
|
||||||
|
- name: Build iOS Racket
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
mkdir -p racket/src/build-ios
|
||||||
|
pushd racket/src/build-ios
|
||||||
|
../configure \
|
||||||
|
--host=aarch64-apple-darwin \
|
||||||
|
--enable-ios=iPhoneOS \
|
||||||
|
--enable-racket=${{ github.workspace }}/host-racket/bin/racket \
|
||||||
|
--enable-scheme=${{ github.workspace }}/host-racket/src/cs/c
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
|
||||||
# Tests
|
# Tests
|
||||||
# Unfortunately Actions does not support atm yaml anchors
|
# Unfortunately Actions does not support atm yaml anchors
|
||||||
# otherwise all the following jobs could be simplified
|
# otherwise all the following jobs could be simplified
|
||||||
|
|
Loading…
Reference in New Issue
Block a user