Skip to content

Commit

Permalink
upload binaries as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio committed Jun 15, 2024
1 parent 92ba80f commit a570d22
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 12 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/macos-intel-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,14 @@ jobs:
cd target/release
zip -r /tmp/macos_${{ matrix.job.arch }}_${{ github.event.release.tag_name }}.zip hbbs hbbr rustdesk-utils
# - name: Upload artifact
# uses: actions/upload-artifact@v2
# with:
# name: macos_${{ matrix.job.arch }}_${{ github.event.release.tag_name }}
# path: target/release/
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: macos_${{ matrix.job.arch }}_${{ github.event.release.tag_name }}
path: |
target/release/hbbs
target/release/hbbr
target/release/rustdesk-utils
- name: Upload Release Assets binaries for Macos amd64
uses: softprops/action-gh-release@v2
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,13 @@ jobs:
- name: Build project
run: |
cargo update -p sctgdesk-api-server
DATABASE_URL=sqlite://$(pwd)/db_v2.sqlite3 cargo build --release
DATABASE_URL=sqlite://$(pwd)/db_v2.sqlite3 cargo build --release
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ubuntu_amd64
path: |
target/release/hbbs
target/release/hbbr
target/release/rustdesk-utils
16 changes: 10 additions & 6 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ jobs:
cd target\${{ matrix.arch }}-pc-windows-msvc\release
7z a -tzip /tmp/windows_${{ matrix.arch }}_${{ github.event.release.tag_name }}.zip hbbs.exe hbbr.exe rustdesk-utils.exe
# - name: Upload artifact
# uses: actions/upload-artifact@v2
# with:
# name: windows_${{ matrix.arch }}_${{ github.event.release.tag_name }}
# path: target
- name: Upload Release Assets binaries for Windows
uses: softprops/action-gh-release@v1
Expand All @@ -74,4 +69,13 @@ jobs:
files: |
/tmp/windows_${{ matrix.arch }}_${{ github.event.release.tag_name }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ubuntu_amd64
path: |
target/${{ matrix.arch }}-pc-windows-msvc/release/hbbs.exe
target/${{ matrix.arch }}-pc-windows-msvc/release/hbbr.exe
target/${{ matrix.arch }}-pc-windows-msvc/release/rustdesk-utils.exe

0 comments on commit a570d22

Please sign in to comment.