Skip to content

Commit 68358d5

Browse files
committed
Fix workflows
1 parent 337c967 commit 68358d5

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99
REGISTRY: frknorg
1010

1111
jobs:
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 }}

.github/workflows/rust.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff 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
@@ -49,6 +44,6 @@ jobs:
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

0 commit comments

Comments
 (0)