forked from MLton/mlton
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract
Install dependencies
composite action
- Loading branch information
1 parent
665812b
commit 0b105a0
Showing
2 changed files
with
66 additions
and
56 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: 'Install dependencies' | ||
description: 'Install dependencies to bootstrap MLton' | ||
defaults: | ||
run: | ||
shell: ${{ (startsWith(matrix.runner, 'windows') && 'msys2 {0}') || 'bash' }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install dependencies (ubuntu) | ||
if: ${{ startsWith(matrix.runner, 'ubuntu') }} | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libgmp-dev | ||
if [[ "${{ matrix.codegen }}" == "llvm" ]]; then sudo apt-get install llvm; fi | ||
mkdir boot && cd boot | ||
curl -O -L https://github.com/MLton/mlton/releases/download/on-20210117-release/mlton-20210117-1.amd64-linux-glibc2.31.tgz | ||
tar xzf mlton-20210117-1.amd64-linux-glibc2.31.tgz --exclude='*/share' | ||
mv mlton-20210117-1.amd64-linux-glibc2.31/* . | ||
rmdir mlton-20210117-1.amd64-linux-glibc2.31 | ||
- name: Install dependencies (macos (amd64)) | ||
if: ${{ matrix.runner == 'macos-13' }} | ||
run: | | ||
# brew update | ||
brew install -q gmp | ||
echo "WITH_GMP_DIR=/usr/local" >> $GITHUB_ENV | ||
if [[ "${{ matrix.codegen }}" == "llvm" ]]; then brew install llvm; echo "$(brew --prefix llvm)/bin" >> $GITHUB_PATH; fi | ||
mkdir boot && cd boot | ||
curl -O -L https://github.com/MLton/mlton/releases/download/on-20210117-release/mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz | ||
tar xzf mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz --exclude='*/share' | ||
mv mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew/* . | ||
rmdir mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew | ||
- name: Install dependencies (macos (arm64)) | ||
if: ${{ matrix.runner == 'macos-14' }} | ||
run: | | ||
# brew update | ||
brew install -q gmp | ||
echo "WITH_GMP_DIR=/opt/homebrew" >> $GITHUB_ENV | ||
if [[ "${{ matrix.codegen }}" == "llvm" ]]; then brew install llvm; echo "$(brew --prefix llvm)/bin" >> $GITHUB_PATH; fi | ||
mkdir boot && cd boot | ||
curl -O -L https://projects.laas.fr/tina/software/mlton-20210117-1.arm64-darwin-21.6-gmp-static.tgz | ||
tar xzf mlton-20210117-1.arm64-darwin-21.6-gmp-static.tgz --exclude='*/share' | ||
mv mlton-20210117-1.arm64-darwin-21.6-gmp-static/* . | ||
rmdir mlton-20210117-1.arm64-darwin-21.6-gmp-static | ||
- name: Install msys2 (windows) | ||
if: ${{ startsWith(matrix.runner, 'windows') }} | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
update: false | ||
install: >- | ||
base-devel | ||
git | ||
pactoys | ||
- name: Install dependencies (windows) | ||
if: ${{ startsWith(matrix.runner, 'windows') }} | ||
run: | | ||
pacboy --noconfirm -S --needed gcc:p gmp-devel: | ||
mkdir boot && cd boot | ||
curl -O -L https://github.com/MLton/mlton/releases/download/on-20200817-release/mlton-20200817-amd64-mingw.tgz | ||
tar xzf mlton-20200817-amd64-mingw.tgz --exclude='*/share' | ||
mv mlton-20200817-amd64-mingw/* . | ||
rmdir mlton-20200817-amd64-mingw |
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