diff options
-rw-r--r-- | .github/workflows/android_test.yml | 4 | ||||
-rw-r--r-- | .github/workflows/cross_test.yml | 20 | ||||
-rw-r--r-- | .github/workflows/linux_test.yml | 22 | ||||
-rw-r--r-- | .github/workflows/macos_test.yml | 22 | ||||
-rw-r--r-- | README.md | 6 | ||||
-rwxr-xr-x | scripts/test (renamed from scripts/travis) | 8 | ||||
-rwxr-xr-x | scripts/travis_failure | 18 |
7 files changed, 55 insertions, 45 deletions
diff --git a/.github/workflows/android_test.yml b/.github/workflows/android_test.yml index ea09846..1632972 100644 --- a/.github/workflows/android_test.yml +++ b/.github/workflows/android_test.yml | |||
@@ -14,7 +14,7 @@ jobs: | |||
14 | steps: | 14 | steps: |
15 | - uses: actions/checkout@v2 | 15 | - uses: actions/checkout@v2 |
16 | - name: Run CI script | 16 | - name: Run CI script |
17 | run: ./scripts/travis | 17 | run: ./scripts/test |
18 | 18 | ||
19 | build-android-10-11: | 19 | build-android-10-11: |
20 | runs-on: ubuntu-18.04 | 20 | runs-on: ubuntu-18.04 |
@@ -27,4 +27,4 @@ jobs: | |||
27 | steps: | 27 | steps: |
28 | - uses: actions/checkout@v2 | 28 | - uses: actions/checkout@v2 |
29 | - name: Run CI script | 29 | - name: Run CI script |
30 | run: ./scripts/travis | 30 | run: ./scripts/test |
diff --git a/.github/workflows/cross_test.yml b/.github/workflows/cross_test.yml new file mode 100644 index 0000000..9bcbfac --- /dev/null +++ b/.github/workflows/cross_test.yml | |||
@@ -0,0 +1,20 @@ | |||
1 | name: cross_ci | ||
2 | |||
3 | on: [push, pull_request] | ||
4 | |||
5 | jobs: | ||
6 | build-other: | ||
7 | strategy: | ||
8 | matrix: | ||
9 | os: [ubuntu-18.04, ubuntu-20.04] | ||
10 | arch: [mingw32, mingw64, arm32, arm64] | ||
11 | runs-on: ${{ matrix.os }} | ||
12 | continue-on-error: true | ||
13 | env: | ||
14 | CC: gcc | ||
15 | ARCH: ${{ matrix.arch }} | ||
16 | name: ${{ matrix.arch }} | ||
17 | steps: | ||
18 | - uses: actions/checkout@v2 | ||
19 | - name: Run CI script | ||
20 | run: ./scripts/test | ||
diff --git a/.github/workflows/linux_test.yml b/.github/workflows/linux_test.yml index 42b3834..028c1a4 100644 --- a/.github/workflows/linux_test.yml +++ b/.github/workflows/linux_test.yml | |||
@@ -6,7 +6,7 @@ jobs: | |||
6 | build-native: | 6 | build-native: |
7 | strategy: | 7 | strategy: |
8 | matrix: | 8 | matrix: |
9 | os: [macos-latest, ubuntu-18.04] | 9 | os: [ubuntu-18.04, ubuntu-20.04] |
10 | compiler: [clang, gcc] | 10 | compiler: [clang, gcc] |
11 | runs-on: ${{ matrix.os }} | 11 | runs-on: ${{ matrix.os }} |
12 | continue-on-error: false | 12 | continue-on-error: false |
@@ -15,24 +15,6 @@ jobs: | |||
15 | ARCH: native | 15 | ARCH: native |
16 | name: ${{ matrix.compiler }} - ${{ matrix.os }} | 16 | name: ${{ matrix.compiler }} - ${{ matrix.os }} |
17 | steps: | 17 | steps: |
18 | - name: Install packages for macos | ||
19 | if: matrix.os == 'macos-latest' | ||
20 | run: brew install automake | ||
21 | - uses: actions/checkout@v2 | 18 | - uses: actions/checkout@v2 |
22 | - name: Run CI script | 19 | - name: Run CI script |
23 | run: ./scripts/travis | 20 | run: ./scripts/test |
24 | |||
25 | build-other: | ||
26 | strategy: | ||
27 | matrix: | ||
28 | arch: [mingw32, mingw64, arm32, arm64] | ||
29 | runs-on: ubuntu-18.04 | ||
30 | continue-on-error: true | ||
31 | env: | ||
32 | CC: gcc | ||
33 | ARCH: ${{ matrix.arch }} | ||
34 | name: ${{ matrix.arch }} | ||
35 | steps: | ||
36 | - uses: actions/checkout@v2 | ||
37 | - name: Run CI script | ||
38 | run: ./scripts/travis | ||
diff --git a/.github/workflows/macos_test.yml b/.github/workflows/macos_test.yml new file mode 100644 index 0000000..29e6cdc --- /dev/null +++ b/.github/workflows/macos_test.yml | |||
@@ -0,0 +1,22 @@ | |||
1 | name: macos_ci | ||
2 | |||
3 | on: [push, pull_request] | ||
4 | |||
5 | jobs: | ||
6 | build-native: | ||
7 | strategy: | ||
8 | matrix: | ||
9 | os: [macos-latest] | ||
10 | compiler: [clang, gcc] | ||
11 | runs-on: ${{ matrix.os }} | ||
12 | continue-on-error: false | ||
13 | env: | ||
14 | CC: ${{ matrix.compiler }} | ||
15 | ARCH: native | ||
16 | name: ${{ matrix.compiler }} - ${{ matrix.os }} | ||
17 | steps: | ||
18 | - name: Install packages for macos | ||
19 | run: brew install automake | ||
20 | - uses: actions/checkout@v2 | ||
21 | - name: Run CI script | ||
22 | run: ./scripts/test | ||
@@ -1,7 +1,11 @@ | |||
1 |  | 1 |  |
2 | ## Official portable version of [LibreSSL](https://www.libressl.org) ## | 2 | ## Official portable version of [LibreSSL](https://www.libressl.org) ## |
3 | 3 | ||
4 | [](https://travis-ci.org/libressl-portable/portable) [](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:libressl) | 4 | [](https://github.com/libressl-portable/portable/actions/workflows/linux_test.yml) |
5 | [](https://github.com/libressl-portable/portable/actions/workflows/macos_test.yml) | ||
6 | [](https://github.com/libressl-portable/portable/actions/workflows/android_test.yml) | ||
7 | [](https://github.com/libressl-portable/portable/actions/workflows/cross_test.yml) | ||
8 | [](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:libressl) | ||
5 | 9 | ||
6 | LibreSSL is a fork of [OpenSSL](https://www.openssl.org) 1.0.1g developed by the | 10 | LibreSSL is a fork of [OpenSSL](https://www.openssl.org) 1.0.1g developed by the |
7 | [OpenBSD](https://www.openbsd.org) project. Our goal is to modernize the codebase, | 11 | [OpenBSD](https://www.openbsd.org) project. Our goal is to modernize the codebase, |
diff --git a/scripts/travis b/scripts/test index a18f58c..80fa988 100755 --- a/scripts/travis +++ b/scripts/test | |||
@@ -81,14 +81,14 @@ elif [ "x$ARCH" = "xarm32" -o "x$ARCH" = "xarm64" ]; then | |||
81 | 81 | ||
82 | if [ "x$ARCH" = "xarm32" ]; then | 82 | if [ "x$ARCH" = "xarm32" ]; then |
83 | sudo apt-get install -y g++-arm-linux-gnueabihf | 83 | sudo apt-get install -y g++-arm-linux-gnueabihf |
84 | sudo ln -s /usr/arm-linux-gnueabihf/lib /lib/arm-linux-gnueabihf | 84 | sudo ln -s /usr/arm-linux-gnueabihf/lib/ld-*.*.so /lib/ld-linux-armhf.so.3 |
85 | sudo ln -s /lib/arm-linux-gnueabihf/ld-2.27.so /lib/ld-linux-armhf.so.3 | 85 | export LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib |
86 | export CC=arm-linux-gnueabihf-gcc | 86 | export CC=arm-linux-gnueabihf-gcc |
87 | ./configure --host=arm-linux | 87 | ./configure --host=arm-linux |
88 | else | 88 | else |
89 | sudo apt-get install -y g++-aarch64-linux-gnu | 89 | sudo apt-get install -y g++-aarch64-linux-gnu |
90 | sudo ln -s /usr/aarch64-linux-gnu/lib/ /lib/aarch64-linux-gnu | 90 | sudo ln -s /usr/aarch64-linux-gnu/lib/ld-*.*.so /lib/ld-linux-aarch64.so.1 |
91 | sudo ln -s /lib/aarch64-linux-gnu/ld-2.27.so /lib/ld-linux-aarch64.so.1 | 91 | export LD_LIBRARY_PATH=/usr/aarch64-linux-gnu/lib |
92 | export CC=aarch64-linux-gnu-gcc | 92 | export CC=aarch64-linux-gnu-gcc |
93 | ./configure --host=aarch64-linux | 93 | ./configure --host=aarch64-linux |
94 | fi | 94 | fi |
diff --git a/scripts/travis_failure b/scripts/travis_failure deleted file mode 100755 index 93354fd..0000000 --- a/scripts/travis_failure +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | CWD=`pwd` | ||
4 | |||
5 | testsdir=`ls -d libressl-*/_build/sub/tests` | ||
6 | if [ -d "$testsdir" ] ; then | ||
7 | echo "##### test logs in $testsdir" | ||
8 | cd $testsdir | ||
9 | for i in `ls *.trs` ; do | ||
10 | grep ':test-result: PASS' $i > /dev/null | ||
11 | if [ $? -eq 1 ] ; then | ||
12 | log=`echo $i | sed 's/\.trs$/\.log/'` | ||
13 | echo "***** $log" | ||
14 | cat $log | ||
15 | fi | ||
16 | done | ||
17 | cd $CWD | ||
18 | fi | ||