Skip to content

Commit

Permalink
migrate CI to GHA
Browse files Browse the repository at this point in the history
disable rustup self update to work around 'rustup.exe" is not a valid subcommand' error for windows CI
  • Loading branch information
g-k committed Mar 15, 2024
1 parent d64492f commit 034d3f8
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 29 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: cargo-show - build & test
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
- 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: cargo build --verbose
- run: cargo test --verbose
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
## cargo-show

[![crates.io version](https://img.shields.io/crates/v/cargo-show.svg)](https://img.shields.io/crates/v/cargo-show.svg)
[![Build Status](https://travis-ci.org/g-k/cargo-show.svg?branch=master)](https://travis-ci.org/g-k/cargo-show)
[![Build status](https://ci.appveyor.com/api/projects/status/m9cf5vhft7qwisas?svg=true)](https://ci.appveyor.com/project/g-k/cargo-show)
[![Build status](https://github.com/g-k/cargo-show/actions/workflows/build.yml/badge.svg)](https://github.com/g-k/cargo-show/actions/workflows/build.yml)

Prints package metadata like pip show, apt-cache show, npm view, gem query, etc.

Expand Down
15 changes: 0 additions & 15 deletions appveyor.yml

This file was deleted.

3 changes: 1 addition & 2 deletions update_readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ cat > README.md <<EOF
## cargo-show
[![crates.io version](https://img.shields.io/crates/v/cargo-show.svg)](https://img.shields.io/crates/v/cargo-show.svg)
[![Build Status](https://travis-ci.org/g-k/cargo-show.svg?branch=master)](https://travis-ci.org/g-k/cargo-show)
[![Build status](https://ci.appveyor.com/api/projects/status/m9cf5vhft7qwisas?svg=true)](https://ci.appveyor.com/project/g-k/cargo-show)
[![Build status](https://github.com/g-k/cargo-show/actions/workflows/build.yml/badge.svg)](https://github.com/g-k/cargo-show/actions/workflows/build.yml)
Prints package metadata like pip show, apt-cache show, npm view, gem query, etc.
Expand Down

0 comments on commit 034d3f8

Please sign in to comment.