diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..a524748 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,27 @@ +on: [push, pull_request] + +name: Continuous integration + +env: + TARGET_PLATFORM: --target x86_64-pc-windows-gnu + APT_PACKAGES: mingw-64 + +jobs: + check: + name: Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - run: sudo apt-get install $APT_PACKAGES + - run: rustup target add "$TARGET_PLATFORM" + - run: cargo check --target "$TARGET_PLATFORM" + build: + name: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - run: sudo apt-get install $APT_PACKAGES + - run: rustup target add "$TARGET_PLATFORM" + - run: cargo build --target "$TARGET_PLATFORM" \ No newline at end of file