uses: actions/checkout@v2
# Run build
- - name: setup
- uses: actions-rs/toolchain@v1
- with:
- toolchain: nightly-x86_64-unknown-linux-gnu
- target: x86_64-unknown-linux-gnu
- override: true
- profile: minimal
- default: true
+ - name: install rustup
+ run: |
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh
+ sh rustup-init.sh -y --default-toolchain none
+
- name: run integration tests
env:
INTEGRATION: ${{ matrix.integration }}
jobs:
test:
runs-on: ubuntu-latest
- name: (${{ matrix.target }}, ${{ matrix.channel }}, ${{ matrix.cfg-release-channel }})
+ name: (${{ matrix.target }}, nightly)
strategy:
# https://help.github.com/en/actions/getting-started-with-github-actions/about-github-actions#usage-limits
# There's a limit of 60 concurrent jobs across all repos in the rust-lang organization.
target: [
x86_64-unknown-linux-gnu,
]
- channel: [ nightly ]
- cfg-release-channel: [
- beta,
- nightly,
- ]
-
- env:
- CFG_RELEASE_CHANNEL: ${{ matrix.cfg-release-channel }}
- CFG_RELEASE: ${{ matrix.cfg-release-channel }}
steps:
- name: checkout
uses: actions/checkout@v2
# Run build
- - name: setup
- uses: actions-rs/toolchain@v1
- with:
- toolchain: ${{ matrix.channel }}-${{ matrix.target }}
- target: ${{ matrix.target }}
- override: true
- profile: minimal
- default: true
+ - name: install rustup
+ run: |
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh
+ sh rustup-init.sh -y --default-toolchain none
+ rustup target add ${{ matrix.target }}
- name: build
run: |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners#supported-runners-and-hardware-resources
# macOS Catalina 10.15
runs-on: macos-latest
- name: (${{ matrix.target }}, ${{ matrix.channel }})
+ name: (${{ matrix.target }}, nightly)
strategy:
fail-fast: false
matrix:
target: [
x86_64-apple-darwin,
]
- channel: [ nightly ]
-
- env:
- CFG_RELEASE_CHANNEL: nightly
- CFG_RELEASE: nightly
steps:
- name: checkout
uses: actions/checkout@v2
# Run build
- - name: setup
- uses: actions-rs/toolchain@v1
- with:
- toolchain: ${{ matrix.channel }}-${{ matrix.target }}
- target: ${{ matrix.target }}
- override: true
- profile: minimal
- default: true
+ - name: install rustup
+ run: |
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh
+ sh rustup-init.sh -y --default-toolchain none
+ rustup target add ${{ matrix.target }}
- name: build
run: |
jobs:
test:
runs-on: windows-latest
- name: (${{ matrix.target }}, ${{ matrix.channel }})
+ name: (${{ matrix.target }}, nightly)
strategy:
# https://help.github.com/en/actions/getting-started-with-github-actions/about-github-actions#usage-limits
# There's a limit of 60 concurrent jobs across all repos in the rust-lang organization.
x86_64-pc-windows-gnu,
x86_64-pc-windows-msvc,
]
- channel: [ nightly ]
- include:
- - channel: nightly
- target: i686-pc-windows-gnu
-
- env:
- CFG_RELEASE_CHANNEL: nightly
- CFG_RELEASE: nightly
steps:
# The Windows runners have autocrlf enabled by default
uses: actions/checkout@v2
# Run build
- - name: setup
- uses: actions-rs/toolchain@v1
- with:
- toolchain: ${{ matrix.channel }}-${{ matrix.target }}
- target: ${{ matrix.target }}
- override: true
- profile: minimal
- default: true
+ - name: Install Rustup using win.rustup.rs
+ run: |
+ # Disable the download progress bar which can cause perf issues
+ $ProgressPreference = "SilentlyContinue"
+ Invoke-WebRequest https://win.rustup.rs/ -OutFile rustup-init.exe
+ .\rustup-init.exe -y --default-host=x86_64-pc-windows-msvc --default-toolchain=none
+ del rustup-init.exe
+ rustup target add ${{ matrix.target }}
+ shell: powershell
- name: Add mingw32 to path for i686-gnu
run: |