diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..abe8b76 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +ko_fi: jaywcjlove +buy_me_a_coffee: jaywcjlove +custom: ["https://www.paypal.me/kennyiseeyou", "https://jaywcjlove.github.io/#/sponsor"] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..339a585 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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