Skip to content

Commit 96626a5

Browse files
committed
CI (wip)
1 parent 79fceb1 commit 96626a5

File tree

7 files changed

+46
-4
lines changed

7 files changed

+46
-4
lines changed

.github/workflows/nightly.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Nightly Build
2+
on:
3+
push:
4+
pull_request:
5+
jobs:
6+
build:
7+
runs-on: windows-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- run: rustup target add i686-pc-windows-msvc
11+
- run: cargo build
12+
- run: Compress-Archive -Path ./target/i686-pc-windows-msvc/debug -DestinationPath release.zip
13+
- uses: actions/upload-artifact@v4
14+
with:
15+
path: |
16+
target/i686-pc-windows-msvc/debug/*.dll
17+
target/i686-pc-windows-msvc/debug/*.exe

.github/workflows/release.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release Build
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: windows-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- run: rustup target add i686-pc-windows-msvc
13+
- run: rustup target add i686-pc-windows-msvc
14+
- run: cargo build --release
15+
- run: |
16+
mkdir mods
17+
mv target/i686-pc-windows-msvc/release/scrollmap_render_all_ships.dll ./mods/
18+
mkdir files
19+
mv target/i686-pc-windows-msvc/release/aimcli.exe ./files
20+
mv target/i686-pc-windows-msvc/release/cprcli.exe ./files
21+
mv target/i686-pc-windows-msvc/release/roucli.exe ./files
22+
Compress-Archive -Path ./mods -DestinationPath ./mods.zip
23+
gh release upload ${{ github.ref_name }} ./mods.zip ./files/*
24+
env:
25+
GITHUB_TOKEN: ${{ github.TOKEN }}

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resolver = "2"
44
members = [
55
"aimcli",
66
"cprcli",
7-
"mod-render-all-ships",
7+
"mod-scrollmap-render-all-ships",
88
#"p3-agent",
99
"p3-agent-loader",
1010
"p3-aim",

mod-render-all-ships/Cargo.toml mod-scrollmap-render-all-ships/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
2-
name = "mod-render-all-ships"
2+
name = "mod-scrollmap-render-all-ships"
33
version = "0.1.0"
44
edition = "2021"
55

66
[lib]
77
crate-type = ["cdylib"]
8-
name="render_all_ships"
8+
name="scrollmap_render_all_ships"
99

1010
[dependencies]
1111
p3-api = { path = "../p3-api" }
File renamed without changes.
File renamed without changes.

p3-rou/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[[bin]]
7-
name = "cli"
7+
name = "roucli"
88
path = "src/cli.rs"
99

1010
[dependencies]

0 commit comments

Comments
 (0)