Skip to content

Commit

Permalink
MacOS 1.55
Browse files Browse the repository at this point in the history
  • Loading branch information
danielabrozzoni committed Oct 1, 2021
1 parent bcf5c9d commit 6d7be9f
Showing 1 changed file with 95 additions and 95 deletions.
190 changes: 95 additions & 95 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,40 @@ name: CI
on: [pull_request]

jobs:
linux-tests:
strategy:
matrix:
toolchain:
- nightly
- 1.43
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Install Rust ${{ matrix.toolchain }} toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
profile: minimal
# We need to download Tor for the tests. Notice that it's not
# needed if you don't run the tests
- name: Download Tor
run: sudo apt-get install -y tor
- name: Build on Rust ${{ matrix.toolchain }}
run: cargo build --all-features --verbose --color always
- name: Test on Rust ${{ matrix.toolchain }}
run: cargo test --all-features --verbose --color always
- name: Fuzz
if: matrix.toolchain == 'nightly'
run: ./fuzz/run.sh
# linux-tests:
# strategy:
# matrix:
# toolchain:
# - nightly
# - 1.43
# runs-on: ubuntu-latest
# steps:
# - name: Checkout source code
# uses: actions/checkout@v2
# - name: Install Rust ${{ matrix.toolchain }} toolchain
# uses: actions-rs/toolchain@v1
# with:
# toolchain: ${{ matrix.toolchain }}
# override: true
# profile: minimal
# # We need to download Tor for the tests. Notice that it's not
# # needed if you don't run the tests
# - name: Download Tor
# run: sudo apt-get install -y tor
# - name: Build on Rust ${{ matrix.toolchain }}
# run: cargo build --all-features --verbose --color always
# - name: Test on Rust ${{ matrix.toolchain }}
# run: cargo test --all-features --verbose --color always
# - name: Fuzz
# if: matrix.toolchain == 'nightly'
# run: ./fuzz/run.sh

macos-tests:
strategy:
matrix:
toolchain:
- nightly
- 1.43
- 1.55
runs-on: macOS-latest
steps:
- name: Checkout source code
Expand All @@ -51,72 +51,72 @@ jobs:
# needed if you don't run the tests
- name: Download deps
run: brew install tor autoconf automake
- name: Build on Rust ${{ matrix.toolchain }}
run: cargo build --all-features --verbose --color always
#- name: Build on Rust ${{ matrix.toolchain }}
# run: cargo build --all-features -vv --color always
- name: Test on Rust ${{ matrix.toolchain }}
run: cargo test --all-features --verbose --color always

windows-tests:
strategy:
matrix:
toolchain:
- nightly
- 1.43
runs-on: windows-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Install Rust ${{ matrix.toolchain }} toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
profile: minimal
- name: Build on Rust ${{ matrix.toolchain }}
# We can't compile tor on windows, cross-compile only :)
run: cargo build --verbose --color always
- name: Test on Rust ${{ matrix.toolchain }}
# We can't compile tor on windows, cross-compile only :)
run: cargo test --verbose --color always

# We only cross compile windows, without doing any test.
# In future we could download artifacts and make them run on CI as well, I guess?
windows-cross-compile-tor:
strategy:
matrix:
toolchain:
#- nightly
- 1.43
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Install needed deps
run: sudo apt-get update && sudo apt-get install -y mingw-w64 tar
- name: Install Rust ${{ matrix.toolchain }} toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: x86_64-pc-windows-gnu
override: true
profile: minimal
# libsodium build.rs is broken: https://github.com/sodiumoxide/sodiumoxide/issues/377
# We need to manually download libsodium and give it to cargo while compiling
# Note that we could use the libsodium.a already provided in sodiumoxide, but it's tricky to find
# FIXME: we are not verifying sigs!! In CI who cares but don't forget to verify them in real life lol
- name: Download libsodium
run: wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.18-mingw.tar.gz && tar xvf libsodium-1.0.18-mingw.tar.gz
- name: Build on Rust ${{ matrix.toolchain }}
run: SODIUM_LIB_DIR=$PWD/libsodium-win64/lib/ cargo build -vv --color always --all-features --target x86_64-pc-windows-gnu -j 1

rustfmt_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
override: true
- run: cargo fmt -- --check
run: cargo test --all-features -vv --color always

# windows-tests:
# strategy:
# matrix:
# toolchain:
# - nightly
# - 1.43
# runs-on: windows-latest
# steps:
# - name: Checkout source code
# uses: actions/checkout@v2
# - name: Install Rust ${{ matrix.toolchain }} toolchain
# uses: actions-rs/toolchain@v1
# with:
# toolchain: ${{ matrix.toolchain }}
# override: true
# profile: minimal
# - name: Build on Rust ${{ matrix.toolchain }}
# # We can't compile tor on windows, cross-compile only :)
# run: cargo build --verbose --color always
# - name: Test on Rust ${{ matrix.toolchain }}
# # We can't compile tor on windows, cross-compile only :)
# run: cargo test --verbose --color always
#
# # We only cross compile windows, without doing any test.
# # In future we could download artifacts and make them run on CI as well, I guess?
# windows-cross-compile-tor:
# strategy:
# matrix:
# toolchain:
# #- nightly
# - 1.43
# runs-on: ubuntu-latest
# steps:
# - name: Checkout source code
# uses: actions/checkout@v2
# - name: Install needed deps
# run: sudo apt-get update && sudo apt-get install -y mingw-w64 tar
# - name: Install Rust ${{ matrix.toolchain }} toolchain
# uses: actions-rs/toolchain@v1
# with:
# toolchain: ${{ matrix.toolchain }}
# target: x86_64-pc-windows-gnu
# override: true
# profile: minimal
# # libsodium build.rs is broken: https://github.com/sodiumoxide/sodiumoxide/issues/377
# # We need to manually download libsodium and give it to cargo while compiling
# # Note that we could use the libsodium.a already provided in sodiumoxide, but it's tricky to find
# # FIXME: we are not verifying sigs!! In CI who cares but don't forget to verify them in real life lol
# - name: Download libsodium
# run: wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.18-mingw.tar.gz && tar xvf libsodium-1.0.18-mingw.tar.gz
# - name: Build on Rust ${{ matrix.toolchain }}
# run: SODIUM_LIB_DIR=$PWD/libsodium-win64/lib/ cargo build -vv --color always --all-features --target x86_64-pc-windows-gnu -j 1
#
# rustfmt_check:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# components: rustfmt
# override: true
# - run: cargo fmt -- --check
#

0 comments on commit 6d7be9f

Please sign in to comment.