Skip to content

Commit

Permalink
Merge pull request #13 from hiro-o918/feature/publish
Browse files Browse the repository at this point in the history
publish to crate.io and add tar.gz release for macOS
  • Loading branch information
hiro-o918 authored Mar 3, 2022
2 parents 7cdc26a + 381b5d5 commit f35d04d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
toolchain: stable
override: true

- uses: Swatinem/rust-cache@v1

- name: Run cargo check
uses: actions-rs/cargo@v1
with:
Expand All @@ -38,6 +40,8 @@ jobs:
toolchain: stable
override: true

- uses: Swatinem/rust-cache@v1

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
Expand All @@ -58,6 +62,8 @@ jobs:
override: true
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v1

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ jobs:
fail-fast: false
matrix:
include:
- target: x86_64-pc-windows-gnu
archive: zip
- target: x86_64-unknown-linux-musl
archive: tar.gz tar.xz
- target: x86_64-apple-darwin
archive: zip
archive: tar.gz zip
steps:
- uses: actions/checkout@master

- uses: Swatinem/rust-cache@v1

- name: Compile and release
uses: rust-build/rust-build.action@latest
env:
Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name = "awsctx"
version = "0.2.0"
authors = ["Hironoiri Yamamoto <mr.nikoru918@gmail.com>"]
edition = "2018"
description = "Context Manager for AWS Profiles"
license = "MIT"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down

0 comments on commit f35d04d

Please sign in to comment.