Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/on-pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Pull request build

on:
pull_request:

jobs:
build-and-upload:
name: build and upload
runs-on: ${{ matrix.os }}

strategy:
matrix:
include:
- build: linux
os: ubuntu-latest
target: x86_64-unknown-linux-musl

- build: macos
os: macos-latest
target: aarch64-apple-darwin

- build: windows-gnu
os: windows-latest
target: x86_64-pc-windows-gnu

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Install Rust
# Or @nightly if you want
uses: dtolnay/rust-toolchain@stable
# Arguments to pass in
with:
# Make Rust compile to our target (defined in the matrix)
targets: ${{ matrix.target }}

- name: Build project
run: cargo build --release --target ${{ matrix.target }}
3 changes: 0 additions & 3 deletions .github/workflows/on-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust
# Or @nightly if you want
uses: dtolnay/rust-toolchain@stable
# Arguments to pass in
with:
# Make Rust compile to our target (defined in the matrix)
targets: ${{ matrix.target }}
Expand All @@ -40,7 +38,6 @@ jobs:
shell: bash
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

# TODO: Build project here
- name: Build project
run: cargo build --release --target ${{ matrix.target }}

Expand Down
132 changes: 131 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rcon"
version = "1.0.0"
version = "1.0.1"
edition = "2021"
authors = ["GDGunnars <gdg@gdg.is>", "BLAST.tv <support@blast.tv>"]
license = "MIT OR Apache-2.0"
Expand All @@ -24,4 +24,5 @@ env_logger = "0.11.3"
inquire = "0.7.5"
log = "0.4.21"
rcon-client = "0.1.2"
rustyline = "14.0.0"
serde = { version = "1.0.198", features = ["derive"] }
Loading