Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/test-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ defaults:
jobs:
build-spidermonkey-unix:
strategy:
fail-fast: false
matrix:
# Use Ubuntu 20.04 / macOS 12 + Python 3.10 to build SpiderMonkey
os: [ 'ubuntu-20.04', 'macos-12', 'm2ci' ]
Expand All @@ -41,6 +42,11 @@ jobs:
./_spidermonkey_install/*
key: spidermonkey-${{ runner.os }}-${{ runner.arch }}
lookup-only: true # skip download
- name: Setup Poetry
if: ${{ steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
uses: snok/install-poetry@v1
with:
version: 1.5.1
- name: Build spidermonkey
if: ${{ steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
run: ./setup.sh
Expand All @@ -56,6 +62,11 @@ jobs:
./_spidermonkey_install/*
key: spidermonkey-${{ runner.os }}-${{ runner.arch }}
lookup-only: true # skip download
- name: Setup Poetry
if: ${{ steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
uses: snok/install-poetry@v1
with:
version: 1.5.1
- name: Install dependencies
if: ${{ steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
shell: powershell
Expand Down
2 changes: 1 addition & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then # Linux
sudo apt-get update --yes
sudo apt-get install cmake doxygen graphviz llvm g++ pkg-config m4 wget --yes
elif [[ "$OSTYPE" == "darwin"* ]]; then # macOS
brew update
brew update || true # allow failure
brew install cmake doxygen graphviz pkg-config wget coreutils # `coreutils` installs the `realpath` command
elif [[ "$OSTYPE" == "msys"* ]]; then # Windows
echo "Dependencies are not going to be installed automatically on Windows."
Expand Down