From fb1f0b3b2de7ce70f219bad84094a57107f02ab2 Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Sat, 4 Jun 2022 08:24:05 +1000 Subject: [PATCH 1/2] Replace Azure Pipelines with GitHub Actions --- .github/workflows/rust.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..89bdc48 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,33 @@ +name: Continuous integration + +on: + pull_request: + push: + branches: + - master + +jobs: + os_tests: + name: "Tests / OS: ${{ matrix.os }} - ${{ matrix.channel }}" + runs-on: ${{ matrix.os }} + strategy: + matrix: + channel: + - stable + - beta + - nightly + - 1.23.0 + os: + - macos-10.15 + - windows-2019 + - ubuntu-20.04 + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Update rust + run: rustup update ${{ matrix.channel }} --no-self-update + + - name: Tests + run: cargo +${{ matrix.channel }} test --all From 5c78ee4533bd78ad34d8e0e41ef487b930952a03 Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Sat, 4 Jun 2022 08:24:58 +1000 Subject: [PATCH 2/2] Delete azure-pipelines.yml --- azure-pipelines.yml | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 693e377..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,41 +0,0 @@ -jobs: - -# linux-x64 build -- job: Linux_Build - pool: - vmImage: 'ubuntu-16.04' - steps: - - script: | - curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.23.0 - echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" - - script: rustup default 1.23.0 - - - script: cargo test - -# osx-x64 build -- job: OSX_Build - pool: - vmImage: 'macOS-10.13' - steps: - - script: | - curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.23.0 - echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" - - script: rustup default 1.23.0 - - - script: cargo test - -# win-x64 build -- job: Windows_Build - pool: - vmImage: 'vs2017-win2016' - variables: - rustflags: '-C target-feature=+crt-static' - steps: - - script: | - curl -sSf -o rustup-init.exe https://win.rustup.rs - rustup-init.exe -y --default-toolchain 1.23.0 - - script: rustup default 1.23.0 - - - powershell: | - $env:PATH = "$env:PATH;$env:USERPROFILE\.cargo\bin" - cargo test