33 types : [created]
44
55jobs :
6- build :
6+ build-with-peace :
77 runs-on : ubuntu-latest
88
99 steps :
@@ -18,18 +18,18 @@ jobs:
1818 override : true
1919
2020 - name : Build
21- run : cargo build --all --release
21+ run : cargo build --features with_peace --release --bin pp-server-with-peace
2222
2323 - name : Release
2424 uses : softprops/action-gh-release@v1
2525 if : startsWith(github.ref, 'refs/tags/')
2626 with :
2727 files : |
28- target/release/peace
28+ target/release/pp-server-with- peace
2929 env :
3030 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3131
32- build-win :
32+ build-with-peace- win :
3333 runs-on : windows-latest
3434
3535 steps :
@@ -44,12 +44,65 @@ jobs:
4444 override : true
4545
4646 - name : Build
47- run : cargo build --release
47+ run : cargo build --features with_peace -- release --bin pp-server-with-peace
4848
4949 - name : Release
5050 uses : softprops/action-gh-release@v1
5151 if : startsWith(github.ref, 'refs/tags/')
5252 with :
53- files : target/release/peace.exe
53+ files : |
54+ target/release/pp-server-with-peace.exe
55+ env :
56+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57+
58+ build-without-db :
59+ runs-on : ubuntu-latest
60+
61+ steps :
62+ - name : Checkout
63+ uses : actions/checkout@v1
64+
65+ - name : Install latest rust toolchain
66+ uses : actions-rs/toolchain@v1
67+ with :
68+ toolchain : stable
69+ default : true
70+ override : true
71+
72+ - name : Build
73+ run : cargo build --no-default-features --features peace-objects/no_database --release --bin pp-server-without-db
74+
75+ - name : Release
76+ uses : softprops/action-gh-release@v1
77+ if : startsWith(github.ref, 'refs/tags/')
78+ with :
79+ files : |
80+ target/release/pp-server-without-db
5481 env :
5582 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
83+
84+ build-without-db-win :
85+ runs-on : windows-latest
86+
87+ steps :
88+ - name : Checkout
89+ uses : actions/checkout@v1
90+
91+ - name : Install latest rust toolchain
92+ uses : actions-rs/toolchain@v1
93+ with :
94+ toolchain : stable
95+ default : true
96+ override : true
97+
98+ - name : Build
99+ run : cargo build --no-default-features --features peace-objects/no_database --release --bin pp-server-without-db
100+
101+ - name : Release
102+ uses : softprops/action-gh-release@v1
103+ if : startsWith(github.ref, 'refs/tags/')
104+ with :
105+ files : |
106+ target/release/pp-server-without-db.exe
107+ env :
108+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments