This commit is contained in:
Max Howell 2022-08-04 11:27:59 -04:00 committed by GitHub
parent 16a011a819
commit b63e6028ee
2 changed files with 34 additions and 4 deletions

View file

@ -54,12 +54,12 @@ jobs:
ln -s $GITHUB_WORKSPACE/pantry /opt/tea.xyz/var/pantry
mkdir .git # no git in our image
echo "--insecure" >> ~/.curlrc # our curl is broke somehow for rust bootstrap
apt-get --yes install ca-certificates
;;
macos-11)
sudo mkdir -p /opt/tea.xyz/var
sudo chown -R $(whoami):staff /opt
ln -s $GITHUB_WORKSPACE/pantry /opt/tea.xyz/var/pantry
mkdir -p /opt/deno.land/v1.23.3/.tricksy
# HACKs for teaxyz/setup since it currently requires the working dir to be a srcroot
cp README.md ..
@ -69,9 +69,6 @@ jobs:
exit 1
esac
mkdir -p projects/deno.land
echo 'versions: [1.23.3]' > projects/deno.land/package.yml
- name: HACKS
uses: denoland/setup-deno@v1
if: ${{ matrix.os == 'macos-11' }}

View file

@ -0,0 +1,33 @@
distributable:
url: https://github.com/denoland/deno/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1
relocatable: true
versions:
github: denoland/deno
ignore:
- v1.24.z #FIXME compile issues
- v1.23.4 #FIXME ^^
provides:
- bin/deno
interprets:
- .ts
- .js
build:
script: |
cargo build --release
mkdir -p "{{ prefix }}"/bin
mv target/release/deno "{{ prefix }}"/bin
dependencies:
rust-lang.org: 1
# llvm.org: 13 #FIXME macOS/aarch64 requires this AND fails to build with v14
curl.se: '*' # required to download v8 (python is another option)
tea.xyz/gx/make: '*' # required to build the libffi parts
tea.xyz/gx/cc: c99
test:
script: deno --version