-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upload nightly build and use examples for tests
Added install instructions for Arch Linux Fixed bug in generation of makefile Removed redundant tests in CI Signed-off-by: Andrew Helwer <[email protected]>
- Loading branch information
Showing
5 changed files
with
70 additions
and
41 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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: Build and Package TLA Proof Manager | ||
on: | ||
push: | ||
schedule: | ||
- cron: '42 5 5 * *' | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
test: | ||
name: Build TLAPS installer and test it | ||
|
@@ -24,10 +24,10 @@ jobs: | |
sudo apt-get update | ||
sudo apt-get install --yes time | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- uses: actions/checkout@v2 | ||
python-version: '3.11' | ||
- uses: actions/checkout@v3 | ||
- name: Get OCaml version | ||
run: | | ||
INDEX=${{ matrix.ocaml-compiler }} | ||
|
@@ -44,17 +44,13 @@ jobs: | |
# with: | ||
# path: _build_cache | ||
# key: ${{ runner.os }}_build_cache | ||
- name: Build installer of TLAPS | ||
- name: Build TLAPS installer | ||
run: | | ||
eval $(opam env) | ||
opam install ./ --deps-only --yes | ||
make | ||
make release | ||
- name: Run a subset of `tlapm` tests | ||
run: | | ||
eval $(opam env) | ||
make test-inline test-fast-basic | ||
- name: Run all `tlapm` tests | ||
- name: Run tests | ||
if: >- | ||
matrix.operating-system == 'ubuntu-latest' && | ||
matrix.ocaml-compiler == '2' | ||
|
@@ -65,3 +61,27 @@ jobs: | |
if: matrix.operating-system == 'ubuntu-latest' | ||
run: | | ||
cat _build/default/test/tests.log | ||
- name: Set up build server SSH key | ||
if: matrix.ocaml-compiler == '2' | ||
run: | | ||
mkdir -p ~/.ssh | ||
echo "$INRIA_SSH_PRIVKEY" > ~/.ssh/id_rsa | ||
chmod 600 ~/.ssh/id_rsa | ||
shell: bash | ||
env: | ||
INRIA_SSH_PRIVKEY: ${{ secrets.INRIA_SSH_PRIVKEY }} | ||
- name: Upload to nightly build server | ||
if: matrix.ocaml-compiler == '2' | ||
run: | | ||
# File paths examples, including git commit hash: | ||
# ./_build/tlaps-f0b3919-x86_64-darwin.tar.gz | ||
# ./_build/tlaps-f0b3919-x86_64-linux-gnu.tar.gz | ||
mv _build/tlaps*.tar.gz "_build/tlaps-x86_64-${{ runner.os }}.tar.gz" | ||
rsync -e "ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa" --delete -av "_build/tlaps-x86_64-{{ runner.os }}.tar.gz" [email protected]:dist/ | ||
- name: Trigger run of tlaplus/examples CI | ||
if: matrix.ocaml-compiler == '2' | ||
uses: peter-evans/repository-dispatch@v1 | ||
with: | ||
token: ${{ secrets.DISPATCH_ACCESS_TOKEN }} | ||
repository: tlaplus/examples | ||
event-type: tlapm-dispatch |
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
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
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
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