@@ -3,40 +3,40 @@ name: CI
3
3
on : [pull_request]
4
4
5
5
jobs :
6
- linux-tests :
7
- strategy :
8
- matrix :
9
- toolchain :
10
- - nightly
11
- - 1.43
12
- runs-on : ubuntu-latest
13
- steps :
14
- - name : Checkout source code
15
- uses : actions/checkout@v2
16
- - name : Install Rust ${{ matrix.toolchain }} toolchain
17
- uses : actions-rs/toolchain@v1
18
- with :
19
- toolchain : ${{ matrix.toolchain }}
20
- override : true
21
- profile : minimal
22
- # We need to download Tor for the tests. Notice that it's not
23
- # needed if you don't run the tests
24
- - name : Download Tor
25
- run : sudo apt-get install -y tor
26
- - name : Build on Rust ${{ matrix.toolchain }}
27
- run : cargo build --all-features --verbose --color always
28
- - name : Test on Rust ${{ matrix.toolchain }}
29
- run : cargo test --all-features --verbose --color always
30
- - name : Fuzz
31
- if : matrix.toolchain == 'nightly'
32
- run : ./fuzz/run.sh
6
+ # linux-tests:
7
+ # strategy:
8
+ # matrix:
9
+ # toolchain:
10
+ # - nightly
11
+ # - 1.43
12
+ # runs-on: ubuntu-latest
13
+ # steps:
14
+ # - name: Checkout source code
15
+ # uses: actions/checkout@v2
16
+ # - name: Install Rust ${{ matrix.toolchain }} toolchain
17
+ # uses: actions-rs/toolchain@v1
18
+ # with:
19
+ # toolchain: ${{ matrix.toolchain }}
20
+ # override: true
21
+ # profile: minimal
22
+ # # We need to download Tor for the tests. Notice that it's not
23
+ # # needed if you don't run the tests
24
+ # - name: Download Tor
25
+ # run: sudo apt-get install -y tor
26
+ # - name: Build on Rust ${{ matrix.toolchain }}
27
+ # run: cargo build --all-features --verbose --color always
28
+ # - name: Test on Rust ${{ matrix.toolchain }}
29
+ # run: cargo test --all-features --verbose --color always
30
+ # - name: Fuzz
31
+ # if: matrix.toolchain == 'nightly'
32
+ # run: ./fuzz/run.sh
33
33
34
34
macos-tests :
35
35
strategy :
36
36
matrix :
37
37
toolchain :
38
38
- nightly
39
- - 1.43
39
+ - 1.55
40
40
runs-on : macOS-latest
41
41
steps :
42
42
- name : Checkout source code
@@ -51,72 +51,72 @@ jobs:
51
51
# needed if you don't run the tests
52
52
- name : Download deps
53
53
run : brew install tor autoconf automake
54
- - name : Build on Rust ${{ matrix.toolchain }}
55
- run : cargo build --all-features --verbose --color always
54
+ # - name: Build on Rust ${{ matrix.toolchain }}
55
+ # run: cargo build --all-features -vv --color always
56
56
- name : Test on Rust ${{ matrix.toolchain }}
57
- run : cargo test --all-features --verbose --color always
58
-
59
- windows-tests :
60
- strategy :
61
- matrix :
62
- toolchain :
63
- - nightly
64
- - 1.43
65
- runs-on : windows-latest
66
- steps :
67
- - name : Checkout source code
68
- uses : actions/checkout@v2
69
- - name : Install Rust ${{ matrix.toolchain }} toolchain
70
- uses : actions-rs/toolchain@v1
71
- with :
72
- toolchain : ${{ matrix.toolchain }}
73
- override : true
74
- profile : minimal
75
- - name : Build on Rust ${{ matrix.toolchain }}
76
- # We can't compile tor on windows, cross-compile only :)
77
- run : cargo build --verbose --color always
78
- - name : Test on Rust ${{ matrix.toolchain }}
79
- # We can't compile tor on windows, cross-compile only :)
80
- run : cargo test --verbose --color always
81
-
82
- # We only cross compile windows, without doing any test.
83
- # In future we could download artifacts and make them run on CI as well, I guess?
84
- windows-cross-compile-tor :
85
- strategy :
86
- matrix :
87
- toolchain :
88
- # - nightly
89
- - 1.43
90
- runs-on : ubuntu-latest
91
- steps :
92
- - name : Checkout source code
93
- uses : actions/checkout@v2
94
- - name : Install needed deps
95
- run : sudo apt-get update && sudo apt-get install -y mingw-w64 tar
96
- - name : Install Rust ${{ matrix.toolchain }} toolchain
97
- uses : actions-rs/toolchain@v1
98
- with :
99
- toolchain : ${{ matrix.toolchain }}
100
- target : x86_64-pc-windows-gnu
101
- override : true
102
- profile : minimal
103
- # libsodium build.rs is broken: https://github.com/sodiumoxide/sodiumoxide/issues/377
104
- # We need to manually download libsodium and give it to cargo while compiling
105
- # Note that we could use the libsodium.a already provided in sodiumoxide, but it's tricky to find
106
- # FIXME: we are not verifying sigs!! In CI who cares but don't forget to verify them in real life lol
107
- - name : Download libsodium
108
- run : wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.18-mingw.tar.gz && tar xvf libsodium-1.0.18-mingw.tar.gz
109
- - name : Build on Rust ${{ matrix.toolchain }}
110
- run : SODIUM_LIB_DIR=$PWD/libsodium-win64/lib/ cargo build -vv --color always --all-features --target x86_64-pc-windows-gnu -j 1
111
-
112
- rustfmt_check :
113
- runs-on : ubuntu-latest
114
- steps :
115
- - uses : actions/checkout@v1
116
- - uses : actions-rs/toolchain@v1
117
- with :
118
- toolchain : stable
119
- components : rustfmt
120
- override : true
121
- - run : cargo fmt -- --check
57
+ run : cargo test --all-features -vv --color always
122
58
59
+ # windows-tests:
60
+ # strategy:
61
+ # matrix:
62
+ # toolchain:
63
+ # - nightly
64
+ # - 1.43
65
+ # runs-on: windows-latest
66
+ # steps:
67
+ # - name: Checkout source code
68
+ # uses: actions/checkout@v2
69
+ # - name: Install Rust ${{ matrix.toolchain }} toolchain
70
+ # uses: actions-rs/toolchain@v1
71
+ # with:
72
+ # toolchain: ${{ matrix.toolchain }}
73
+ # override: true
74
+ # profile: minimal
75
+ # - name: Build on Rust ${{ matrix.toolchain }}
76
+ # # We can't compile tor on windows, cross-compile only :)
77
+ # run: cargo build --verbose --color always
78
+ # - name: Test on Rust ${{ matrix.toolchain }}
79
+ # # We can't compile tor on windows, cross-compile only :)
80
+ # run: cargo test --verbose --color always
81
+ #
82
+ # # We only cross compile windows, without doing any test.
83
+ # # In future we could download artifacts and make them run on CI as well, I guess?
84
+ # windows-cross-compile-tor:
85
+ # strategy:
86
+ # matrix:
87
+ # toolchain:
88
+ # #- nightly
89
+ # - 1.43
90
+ # runs-on: ubuntu-latest
91
+ # steps:
92
+ # - name: Checkout source code
93
+ # uses: actions/checkout@v2
94
+ # - name: Install needed deps
95
+ # run: sudo apt-get update && sudo apt-get install -y mingw-w64 tar
96
+ # - name: Install Rust ${{ matrix.toolchain }} toolchain
97
+ # uses: actions-rs/toolchain@v1
98
+ # with:
99
+ # toolchain: ${{ matrix.toolchain }}
100
+ # target: x86_64-pc-windows-gnu
101
+ # override: true
102
+ # profile: minimal
103
+ # # libsodium build.rs is broken: https://github.com/sodiumoxide/sodiumoxide/issues/377
104
+ # # We need to manually download libsodium and give it to cargo while compiling
105
+ # # Note that we could use the libsodium.a already provided in sodiumoxide, but it's tricky to find
106
+ # # FIXME: we are not verifying sigs!! In CI who cares but don't forget to verify them in real life lol
107
+ # - name: Download libsodium
108
+ # run: wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.18-mingw.tar.gz && tar xvf libsodium-1.0.18-mingw.tar.gz
109
+ # - name: Build on Rust ${{ matrix.toolchain }}
110
+ # run: SODIUM_LIB_DIR=$PWD/libsodium-win64/lib/ cargo build -vv --color always --all-features --target x86_64-pc-windows-gnu -j 1
111
+ #
112
+ # rustfmt_check:
113
+ # runs-on: ubuntu-latest
114
+ # steps:
115
+ # - uses: actions/checkout@v1
116
+ # - uses: actions-rs/toolchain@v1
117
+ # with:
118
+ # toolchain: stable
119
+ # components: rustfmt
120
+ # override: true
121
+ # - run: cargo fmt -- --check
122
+ #
0 commit comments