Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.6 and migrate CI to GHA #110

Merged
merged 3 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: cargo-show - build & test on Linux
on:
push:

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1

jobs:
build_and_test:
name: cargo-show - latest
strategy:
fail-fast: false
matrix:
include:
- name: Linux - rust stable
os: ubuntu-latest
toolchain: stable
- name: Linux - rust beta
os: ubuntu-latest
toolchain: beta
- name: Linux - rust nightly
os: ubuntu-latest
toolchain: nightly
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.toolchain == 'nightly' }}
steps:
- uses: actions/checkout@v3
- run: rustup set profile minimal
- run: rustup update --no-self-update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose
35 changes: 35 additions & 0 deletions .github/workflows/build_default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: cargo-show - build & test on OSX and Windows
on:
push:
branches:
- master

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1

jobs:
build_and_test:
name: cargo-show - latest
strategy:
fail-fast: false
matrix:
include:
- name: OSX - rust stable
os: macos-latest
toolchain: stable
- name: Windows - rust stable
os: windows-latest
toolchain: stable
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.toolchain == 'nightly' }}
steps:
- uses: actions/checkout@v3
- run: rustup set profile minimal
- run: rustup update --no-self-update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
if: ${{ matrix.os == 'windows-latest' }}
- run: vcpkg install openssl:x64-windows-static-md
if: ${{ matrix.os == 'windows-latest' }}
- run: cargo build --verbose
- run: cargo test --verbose
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

Loading
Loading