-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] GH actions for windows, linux and osx
- Loading branch information
Showing
1 changed file
with
62 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: GitHub CI | ||
|
||
on: | ||
- pull_request | ||
- push | ||
|
||
env: | ||
PLATFORM_ARGS: -extent=f -parallel=p -jobs=2 -vst=y -compcert=f | ||
OPAM_VERSION: 2.0.6 | ||
|
||
jobs: | ||
Windows: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Set git to use LF | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run common platform script | ||
shell: cmd | ||
env: | ||
COQREGTESTING: y | ||
run: coq_platform_make_windows.bat -destcyg=C:\cygwin64_coq_platform -arch=64 %PLATFORM_ARGS% | ||
|
||
Ubuntu: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install opam | ||
run: | | ||
sudo apt-get install bubblewrap build-essential | ||
curl -L https://github.com/ocaml/opam/releases/download/${OPAM_VERSION}/opam-${OPAM_VERSION}-x86_64-linux > opam.${OPAM_VERSION} | ||
chmod a+x opam.${OPAM_VERSION} | ||
sudo cp opam.${OPAM_VERSION} /usr/local/bin/opam.${OPAM_VERSION} | ||
sudo ln -s /usr/local/bin/opam.${OPAM_VERSION} /usr/local/bin/opam | ||
- name: Run common platform script | ||
shell: bash | ||
run: ./coq_platform_make.sh $PLATFORM_ARGS | ||
|
||
Macos: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install opam | ||
run: | | ||
curl -L https://github.com/ocaml/opam/releases/download/${OPAM_VERSION}/opam-${OPAM_VERSION}-x86_64-macos > opam.${OPAM_VERSION} | ||
chmod a+x opam.${OPAM_VERSION} | ||
sudo cp opam.${OPAM_VERSION} /usr/local/bin/opam.${OPAM_VERSION} | ||
sudo ln -s /usr/local/bin/opam.${OPAM_VERSION} /usr/local/bin/opam | ||
- name: Run common platform script | ||
shell: bash | ||
run: ./coq_platform_make.sh $PLATFORM_ARGS |