X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=.github%2Fworkflows%2Fbuild.yml;h=8fb8095a9941ee80565d9adc5368dcf5bfc14fdd;hb=b61dae03855accbafcbbc68c69692cbe1797b195;hp=1a70ea03f9f973d1632ae776480e95085c5ac233;hpb=6199433ab8f13e4f78b12e13a683eb33c999114b;p=ldk-sample diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a70ea0..8fb8095 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,20 +6,24 @@ jobs: build: strategy: matrix: - toolchain: [ stable, beta ] + platform: [ ubuntu-latest, macos-latest, windows-latest ] + toolchain: [ stable, 1.63.0 ] include: - toolchain: stable check-fmt: true - runs-on: ubuntu-latest + exclude: + - platform: macos-latest + toolchain: 1.63.0 + - platform: windows-latest + toolchain: stable + runs-on: ${{ matrix.platform }} steps: - name: Checkout source code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Rust ${{ matrix.toolchain }} toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.toolchain }} - override: true - profile: minimal + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ matrix.toolchain }} + rustup override set ${{ matrix.toolchain }} - name: Build on Rust ${{ matrix.toolchain }} run: cargo build --verbose --color always - name: Check formatting