Skip to content

Commit

Permalink
chore: replace unmaintained github action
Browse files Browse the repository at this point in the history
  • Loading branch information
JoyceBabu committed Nov 26, 2024
1 parent 179bf71 commit c94412e
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,30 @@ jobs:
runs-on: macos-latest # Apple needs to be compiled on an apple os
cross: false # Cross fails on these platforms
- os: x86_64-pc-windows-gnu
runs-on: windows-latest # Not needed, but why not?
runs-on: ubuntu-latest # Not needed, but why not?
suffix: .exe # Windows has an .exe suffix
cross: false # Cross fails on these platforms

steps:
- uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt
target: ${{ matrix.os }}

- name: Install Cross
run: cargo install cross

- name: Install mingw compiler
run: |
sudo apt-get updat
sudo apt-get install -y gcc-mingw-w64
- name: Build Binary
uses: actions-rs/cargo@v1
with:
use-cross: ${{ matrix.cross }}
command: build
args: --target ${{ matrix.os }} --release
run: cross build --profile release --target ${{ matrix.os }}

- name: Save Artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit c94412e

Please sign in to comment.