kind: pipeline type: docker name: tests steps: - name: test-linux image: rust commands: - apt update - apt -y install libluajit-5.1-dev - cargo test -v - name: clippy-linux image: rust commands: - apt update - apt -y install libluajit-5.1-dev - rustup component add clippy - cargo clippy --- kind: pipeline type: docker name: release steps: - name: release-linux image: rust commands: - apt update - apt -y install libluajit-5.1-dev - cargo build --release -v - strip target/release/lmpt - name: release-windows image: lordmzte/rust-win commands: - apt update - apt -y install libluajit-5.1-dev - cargo build --release --target x86_64-pc-windows-gnu -v - name: publish image: plugins/gitea-release settings: base_url: https://tilera.xyz/git api_key: from_secret: gitea_token note: CHANGELOG.md title: tag-${DRONE_TAG} files: - target/release/lmpt - target/x86_64-pc-windows-gnu/release/lmpt.exe when: event: [tag] depends_on: - release-linux - release-windows