Skip to content

Commit

Permalink
update cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjani committed Oct 26, 2024
1 parent 34ed67a commit 9a977eb
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,12 @@ jobs:
# binary_postfix: ".exe"

steps:
- name: Installing Rust toolchain
uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Checkout repository
uses: actions/checkout@v2
- name: Cargo build
uses: actions-rs/cargo@v1
with:
command: build
toolchain: ${{ matrix.rust }}
args: --release --target ${{ matrix.target }}
targets: "x86_64-apple-darwin, x86_64-unknown-linux-gnu, x86_64-pc-windows-msvc"
- uses: actions/checkout@v2
- run: cargo build --release --target ${{ matrix.target }}

- name: Packaging final binary
shell: bash
Expand Down Expand Up @@ -69,11 +62,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: publish
args: --token ${{ secrets.CARGO_API_KEY }} --allow-dirty
- uses: dtolnay/rust-toolchain@stable
- run: cargo publish --token ${{ secrets.CARGO_API_KEY }} --allow-dirty

0 comments on commit 9a977eb

Please sign in to comment.