-
-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #30216: GH Actions: Test Windows with WSL
https://groups.google.com/d/msg/sage-devel/vC0ySd4HGeQ/RBA_XrqLBAAJ URL: https://trac.sagemath.org/30216 Reported by: mkoeppe Ticket author(s): Tobias Diez Reviewer(s): Matthias Koeppe
- Loading branch information
Showing
19 changed files
with
113 additions
and
22 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,59 @@ | ||
name: Build & Test WSL | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
windows: | ||
runs-on: windows-latest | ||
name: Windows (using WSL) | ||
# Following https://trac.sagemath.org/ticket/25206#comment:63 | ||
steps: | ||
- name: Configure git | ||
run: git config --global core.symlinks true | ||
- uses: actions/checkout@v2 | ||
- name: Install Ubuntu 20.04 (in WSL) | ||
run: | | ||
(New-Object System.Net.WebClient).DownloadFile("https://aka.ms/wslubuntu2004", "Ubuntu.appx") | ||
Expand-Archive Ubuntu.appx | ||
Ubuntu\ubuntu2004.exe install --root | ||
- name: Install dependencies | ||
run: | | ||
Function ExtractPackages | ||
{ | ||
param($path) | ||
@(Get-Content $path | Where-Object { !$_.StartsWith("#") }) | ||
} | ||
$packages = Get-ChildItem build/pkgs -recurse -Include debian.txt, debian-bootstrap.txt | foreach-object { ExtractPackages $_.FullName } | sort -Unique | ||
# Add tox which is use to build | ||
$packages += 'tox' | ||
echo "Install the following packages:" @packages | ||
# Add deadsnakes so that libpython3.7-dev is found | ||
& wsl sudo add-apt-repository ppa:deadsnakes/ppa | ||
# Install | ||
& wsl sudo apt-get update -y | ||
& wsl sudo apt-get install -y @packages | ||
- name: Build | ||
run: wsl tox -e local -- SAGE_NUM_THREADS=4 build | ||
env: | ||
# WSL runs everything as root, so we have to enable build as root user | ||
EXTRA_CONFIGURE_ARGS: "--enable-build-as-root" | ||
# If make is invoked in parellel (i.e. with -jN where N > 1), then we sometimes run into errors for some reason | ||
# So keep N small in order to minimize the risk | ||
MAKE: "make -j2" | ||
WSLENV: EXTRA_CONFIGURE_ARGS:MAKE | ||
- name: Test | ||
run: wsl tox -e local -- SAGE_NUM_THREADS=4 ptest | ||
- name: Prepare logs artifact | ||
run: mkdir -p "artifacts/logs"; cp -r .tox/*/log "artifacts/logs" | ||
shell: bash | ||
if: always() | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
path: artifacts | ||
name: logs | ||
if: always() | ||
- name: Print out logs for immediate inspection | ||
# and markup the output with GitHub Actions logging commands | ||
run: .github/workflows/scan-logs.sh "artifacts/logs" | ||
shell: bash | ||
if: always() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
libbrial-dev libbrial-groebner-dev | ||
libbrial-dev | ||
libbrial-groebner-dev |
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 +1,2 @@ | ||
libcdd-dev libcdd-tools | ||
libcdd-dev | ||
libcdd-tools |
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 +1,2 @@ | ||
cliquer libcliquer-dev | ||
cliquer | ||
libcliquer-dev |
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 +1,2 @@ | ||
curl libcurl4-openssl-dev | ||
curl | ||
libcurl4-openssl-dev |
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,2 +1,6 @@ | ||
# Packages needed for ./bootstrap | ||
gettext autoconf automake libtool pkg-config | ||
gettext | ||
autoconf | ||
automake | ||
libtool | ||
pkg-config |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
gmp-ecm libecm-dev | ||
gmp-ecm | ||
libecm-dev |
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 +1,2 @@ | ||
gcc g++ | ||
gcc | ||
g++ |
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 +1,2 @@ | ||
glpk-utils libglpk-dev | ||
glpk-utils | ||
libglpk-dev |
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 +1,2 @@ | ||
lcalc liblfunction-dev | ||
lcalc | ||
liblfunction-dev |
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 +1,2 @@ | ||
openssl libssl-dev | ||
openssl | ||
libssl-dev |
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,5 +1,9 @@ | ||
pari-gp2c libpari-dev | ||
pari-gp2c | ||
libpari-dev | ||
# #29319: cypari2 needs gphelp at installation time | ||
pari-doc | ||
# We add these data packages because they are checked by spkg-configure.m4 | ||
pari-elldata pari-galdata pari-galpol pari-seadata | ||
pari-elldata | ||
pari-galdata | ||
pari-galpol | ||
pari-seadata |
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 +1,10 @@ | ||
libxml-libxslt-perl libxml-writer-perl libxml2-dev libperl-dev libfile-slurp-perl libjson-perl libsvg-perl libterm-readkey-perl libterm-readline-gnu-perl libmongodb-perl | ||
libxml-libxslt-perl | ||
libxml-writer-perl | ||
libxml2-dev | ||
libperl-dev | ||
libfile-slurp-perl | ||
libjson-perl | ||
libsvg-perl | ||
libterm-readkey-perl | ||
libterm-readline-gnu-perl | ||
libmongodb-perl |
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 +1,2 @@ | ||
libplanarity-dev planarity | ||
libplanarity-dev | ||
planarity |
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 +1,3 @@ | ||
python3 libpython3-dev python3-distutils | ||
python3 | ||
libpython3-dev | ||
python3-distutils |
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,2 +1,3 @@ | ||
r-base-dev | ||
r-cran-lattice # 29471 | ||
# 29471 | ||
r-cran-lattice |
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,2 +1,3 @@ | ||
xz-utils liblzma-dev | ||
xz-utils | ||
liblzma-dev | ||
# pixz # provides pixz but not xz on debian buster |