Skip to content

Commit

Permalink
Add github actions and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathmagician8191 committed Sep 4, 2024
1 parent 0ab72e3 commit 9ac69a3
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Compile

on:
- push
- pull_request

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build -r --bin enterprise
- uses: actions/upload-artifact@v4
with:
name: enterprise
path: target/release/enterprise
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build -r --bin enterprise
- uses: actions/upload-artifact@v4
with:
name: enterprise-windows
path: target/release/enterprise.exe
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Test

on:
- push
- pull_request

env:
CARGO_TERM_COLOR: always

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check Format
run: cargo fmt --check
8 changes: 8 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Multiplayer-only WW2 Naval combat simulator (in progress)

To build the client:
`cargo build -r --bin enterprise`

To build the server:
`cargo build -r --bin midway`
By default the server is hosted at port 25565, it can be changed in the code

0 comments on commit 9ac69a3

Please sign in to comment.