-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
76 additions
and
0 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 |
---|---|---|
|
@@ -35,3 +35,79 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: /tmp/ucm/**/*.tar.gz | ||
|
||
build_linux: | ||
|
||
name: "build_linux" | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install stack | ||
run: | | ||
curl -L https://github.com/commercialhaskell/stack/releases/download/v2.5.1/stack-2.5.1-linux-x86_64.tar.gz | tar -xz | ||
echo "$HOME/stack-2.5.1-linux-x86_64/" >> $GITHUB_PATH | ||
# One of the transcripts fails if the user's git name hasn't been set. | ||
- name: set git user info | ||
run: | | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
- name: build | ||
run: stack --no-terminal build --flag unison-parser-typechecker:optimized | ||
|
||
- name: fetch latest codebase-ui and package with ucm | ||
run: | | ||
mkdir -p /tmp/ucm/ui | ||
UCM=$(stack path | awk '/local-install-root/{print $2}')/bin/unison | ||
cp $UCM /tmp/ucm/ucm | ||
wget -O/tmp/unisonLocal.zip https://github.com/unisonweb/codebase-ui/releases/download/latest/unisonLocal.zip | ||
unzip -d /tmp/ucm/ui /tmp/unisonLocal.zip | ||
tar -c -z -f ucm-linux.tar.gz -C /tmp/ucm . | ||
- name: Upload linux artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
if-no-files-found: error | ||
name: build-linux | ||
path: ucm-linux.tar.gz | ||
|
||
build_macos: | ||
name: "build_macos" | ||
runs-on: macos-10.15 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install stack | ||
run: | | ||
curl -L https://github.com/commercialhaskell/stack/releases/download/v2.5.1/stack-2.5.1-osx-x86_64.tar.gz | tar -xz | ||
echo "$HOME/stack-2.5.1-osx-x86_64/" >> $GITHUB_PATH | ||
# One of the transcripts fails if the user's git name hasn't been set. | ||
- name: set git user info | ||
run: | | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
- name: remove ~/.stack/setup-exe-cache on macOS | ||
run: rm -rf ~/.stack/setup-exe-cache | ||
|
||
- name: build | ||
run: stack --no-terminal build --flag unison-parser-typechecker:optimized | ||
|
||
- name: fetch latest codebase-ui and package with ucm | ||
run: | | ||
mkdir -p /tmp/ucm/ui | ||
UCM=$(stack path | awk '/local-install-root/{print $2}')/bin/unison | ||
cp $UCM /tmp/ucm/ucm | ||
wget -O/tmp/unisonLocal.zip https://github.com/unisonweb/codebase-ui/releases/download/latest/unisonLocal.zip | ||
unzip -d /tmp/ucm/ui /tmp/unisonLocal.zip | ||
tar -c -z -f ucm-macos.tar.gz -C /tmp/ucm . | ||
- name: Upload macos artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
if-no-files-found: error | ||
name: build-macos | ||
path: ucm-macos.tar.gz |