Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
1.7.0 - Public Database
Browse files Browse the repository at this point in the history
  • Loading branch information
ShayBox committed Apr 17, 2023
1 parent f53073b commit 9b9578a
Show file tree
Hide file tree
Showing 8 changed files with 265 additions and 122 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
release:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}

strategy:
fail-fast: false
Expand All @@ -14,10 +15,17 @@ jobs:
- name: Linux-aarch64
target: aarch64-unknown-linux-gnu
runner: ubuntu-latest
zip: proxy,manager

- name: Linux-x86_64
target: x86_64-unknown-linux-gnu
runner: ubuntu-latest
zip: proxy,manager

- name: Windows-x86_64
target: x86_64-pc-windows-msvc
runner: windows-latest
zip: proxy.exe,manager.exe

name: ${{ matrix.name }}
runs-on: ${{ matrix.runner }}
Expand All @@ -31,13 +39,18 @@ jobs:
- name: Add Rust Target
run: rustup target add ${{ matrix.target }}

- name: Build Release Binary
- name: Build Release Binaries
run: |
cargo install cross
cross build --release --target ${{ matrix.target }} --package proxy
cross build --release --target ${{ matrix.target }} --no-default-features
- name: Create Zip Archive (Windows)
if: ${{ matrix.runner == 'windows-latest' }}
run: bash -c '7z a ${{ matrix.name }}.zip ./target/${{ matrix.target }}/release/{${{ matrix.zip }}}'

- name: Create Zip Archive
run: zip -j ${{ matrix.name }}.zip target/${{ matrix.target }}/release/proxy
- name: Create Zip Archive (Other)
if: ${{ matrix.runner != 'windows-latest' }}
run: zip -j ${{ matrix.name }}.zip target/${{ matrix.target }}/release/{${{ matrix.zip }}}

- name: Upload Zip Archive
run: gh release upload ${{ github.ref_name }} ${{ matrix.name }}.zip --clobber
Loading

0 comments on commit 9b9578a

Please sign in to comment.