File tree Expand file tree Collapse file tree 2 files changed +12
-17
lines changed
Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 99 REGISTRY : frknorg
1010
1111jobs :
12- build-api :
12+ build-trial- api :
1313 runs-on : ubuntu-latest
1414
1515 steps :
@@ -31,12 +31,12 @@ jobs:
3131 - name : Upload artifacts
3232 uses : actions/upload-artifact@v4
3333 with :
34- name : trial
35- path : target/release/trial
34+ name : trial-api
35+ path : target/release/trial-api
3636
3737 release :
3838 name : Release
39- needs : [build-api]
39+ needs : [build-trial- api]
4040 runs-on : ubuntu-latest
4141
4242 steps :
@@ -46,20 +46,20 @@ jobs:
4646 - name : Download Trial API artifact
4747 uses : actions/download-artifact@v4
4848 with :
49- name : trial
50- path : artifacts/trial
49+ name : trial-api
50+ path : artifacts/trial-api
5151
5252 - name : Prepare release files
5353 run : |
5454 mkdir -p release
55- cp artifacts/api/trial release/trial-x86_64
55+ cp artifacts/api/trial-api release/trial-api -x86_64
5656 chmod +x release/*
5757
5858 - name : Release
5959 uses : softprops/action-gh-release@v1
6060 if : startsWith(github.ref, 'refs/tags/')
6161 with :
6262 files : |
63- release/trial-x86_64
63+ release/trial-api- x86_64
6464 env :
6565 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -26,20 +26,15 @@ jobs:
2626 - name : Update apt package index
2727 run : sudo apt-get update
2828
29- - name : Install dependencies
30- run : |
31- sudo apt-get install -y protobuf-compiler
32- # Добавьте другие зависимости если нужно
33-
3429 - name : Build Trial API
35- run : cargo build --release --no-default-features # Исправлено: добавлен пробел
30+ run : cargo build --release --no-default-features
3631
3732 - name : Check binary
3833 run : |
3934 if [ -f "target/release/trial" ]; then
4035 echo "✅ Binary built successfully"
41- file target/release/trial
42- ls -lh target/release/trial
36+ file target/release/trial-api
37+ ls -lh target/release/trial-api
4338 else
4439 echo "❌ Binary not found!"
4540 exit 1
4944 uses : actions/upload-artifact@v4
5045 with :
5146 name : trial-api
52- path : target/release/trial
47+ path : target/release/trial-api
5348 retention-days : 30
5449 if-no-files-found : error
You can’t perform that action at this time.
0 commit comments