Skip to content

Commit

Permalink
0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ShayBox committed Feb 6, 2024
1 parent 8f9de98 commit 7cd92ea
Show file tree
Hide file tree
Showing 7 changed files with 2,513 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
on:
release:
types: [created]

jobs:
release:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

strategy:
fail-fast: false
matrix:
include:
- name: Linux-aarch64
target: aarch64-unknown-linux-gnu
runner: ubuntu-latest

- name: Linux-x86_64
target: x86_64-unknown-linux-gnu
runner: ubuntu-latest

- name: macOS-Apple
target: aarch64-apple-darwin
runner: macos-latest

- name: macOS-Intel
target: x86_64-apple-darwin
runner: macos-latest

- name: Windows
target: i686-pc-windows-msvc
runner: windows-latest

name: ${{ matrix.name }}
runs-on: ${{ matrix.runner }}
steps:
- name: Fetch Repository
uses: actions/checkout@v4

- name: Update Rust Toolchain
run: rustup update stable

- name: Add Rust Target
run: rustup target add ${{ matrix.target }}

- name: Build Release Binary
run: |
cargo install cross
cross build --release --target ${{ matrix.target }}
- name: Create Zip Archive (Windows)
if: ${{ matrix.runner == 'windows-latest' }}
run: bash -c '7z a ${{ matrix.name }}.zip ./target/${{ matrix.target }}/release/github-socialify-preview.exe'

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

- name: Upload Zip Archive
run: gh release upload ${{ github.ref_name }} ${{ matrix.name }}.zip --clobber
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea/
.vscode/
target/
Loading

0 comments on commit 7cd92ea

Please sign in to comment.