Skip to content

Commit

Permalink
ci: add workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 27, 2024
1 parent b029bc8 commit 3da49de
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ko_fi: jaywcjlove
buy_me_a_coffee: jaywcjlove
custom: ["https://www.paypal.me/kennyiseeyou", "https://jaywcjlove.github.io/#/sponsor"]
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Rust CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [x86_64-unknown-linux-gnu, x86_64-pc-windows-gnu, x86_64-apple-darwin]

steps:
- name: Checkout repository
uses: actions/checkout@v2

- uses: helix-editor/rust-toolchain@v1
with:
profile: minimal
# - name: Set up Rust
# uses: rust-lang/setup-rust@v2
# with:
# rust-version: stable

- name: Install cross
run: cargo install cross

- name: Build with cross
run: cross build --target ${{ matrix.platform }} --release

# - name: Upload binaries
# uses: actions/upload-artifact@v2
# with:
# name: ${{ matrix.platform }}-binary
# path: target/${{ matrix.platform }}/release/your_project_name

0 comments on commit 3da49de

Please sign in to comment.