Skip to content

Commit

Permalink
pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
olegdayo committed Apr 9, 2023
1 parent d067794 commit 768ba72
Show file tree
Hide file tree
Showing 6 changed files with 212 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linux-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ jobs:
sudo ldconfig
sudo ldconfig -p
- name: Tauri Build
- name: Build
run: npx tauri build --verbose

- name: 'Upload Artifact'
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: mascoty-taurine-build
Expand Down
87 changes: 87 additions & 0 deletions .github/workflows/linux-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Linux Release

on:
push:
branches: ["release"]
pull_request:
branches: ["release"]

env:
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3

- name: Update Node.js
run: npm install

- name: Create Dist Directory
run: sudo mkdir dist

- name: Install Tauri Deps
run: |
sudo apt-get update
# Basic
sudo apt-get install curl
sudo apt-get install wget
sudo apt-get install build-essential
# Tauri
sudo apt-get install libwebkit2gtk-4.0-dev
sudo apt-get install libssl-dev
sudo apt-get install libgtk-3-dev
sudo apt-get install libayatana-appindicator3-dev
sudo apt-get install librsvg2-dev
# Additional
sudo apt-get install libxcb-shape0-dev
sudo apt-get install libxcb-xfixes0-dev
sudo apt-get install libxcb1-dev
sudo apt-get install libxkbcommon-dev
sudo apt-get install libwebkit2gtk-4.0
sudo apt-get install libudev-dev
sudo apt-get install libsdl2-dev
sudo apt-get install libasound2-dev
- name: Install LibTorch
run: |
wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.13.1%2Bcpu.zip
unzip libtorch-cxx11-abi-shared-with-deps-1.13.1+cpu.zip
- name: LDConfig
run: |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/libtorch/lib
sudo sh -c "echo $PWD/libtorch/lib >> /etc/ld.so.conf"
sudo ldconfig
sudo ldconfig -p
- name: Test
run: cargo test --verbose --verbose
working-directory: src-tauri

- name: Build
run: npx tauri build --verbose

- name: Upload Build
uses: actions/upload-artifact@v3
with:
name: mascoty-taurine-build
path: src-tauri/target/release/bundle/appimage/*.AppImage

# - name: Create Release
# uses: actions/create-release@latest
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# draft: false
# prerelease: false
4 changes: 2 additions & 2 deletions .github/workflows/macos-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
- name: Install LibTorch
run: brew install pytorch

- name: Tauri Build
- name: Build
run: npx tauri build --verbose

- name: 'Upload Artifact'
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: mascoty-taurine-build
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/macos-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: MacOS Release

on:
push:
branches: ["release"]
pull_request:
branches: ["release"]

env:
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3

- name: Update Node.js
run: npm install

- name: Create Dist Directory
run: sudo mkdir dist

- name: Install LibTorch
run: brew install pytorch

- name: Test
run: cargo test --verbose --verbose
working-directory: src-tauri

- name: Build
run: npx tauri build --verbose

- name: Upload Build
uses: actions/upload-artifact@v3
with:
name: mascoty-taurine-build
path: src-tauri/target/release/bundle/dmg/*.dmg

# - name: Create Release
# uses: actions/create-release@latest
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# draft: false
# prerelease: false
4 changes: 2 additions & 2 deletions .github/workflows/windows-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
echo "$JOINED" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Tauri Build
- name: Build
run: npx tauri build --verbose

- name: 'Upload Artifact'
- name: Upload Build
uses: actions/upload-artifact@v3
with:
name: mascoty-taurine-build
Expand Down
67 changes: 67 additions & 0 deletions .github/workflows/windows-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Windows Release

on:
push:
branches: ["release"]
pull_request:
branches: ["release"]

env:
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3

- name: Update Node.js
run: npm install

- name: Create Dist Directory
run: mkdir dist

- name: Tools
run: choco install unzip

- name: Install LibTorch
run: |
curl https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-1.13.1%2Bcpu.zip --output libtorch.zip
unzip libtorch.zip
- name: Add LibTorch to PATH
run: |
$CURR = Get-Location
echo $CURR
$TORCH = "libtorch\lib"
$JOINED = Join-Path $CURR $TORCH
echo "$JOINED" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Test
run: cargo test --verbose --verbose
working-directory: src-tauri

- name: Build
run: npx tauri build --verbose

- name: Upload Build
uses: actions/upload-artifact@v3
with:
name: mascoty-taurine-build
path: src-tauri/target/release/bundle/msi/*.msi

# - name: Create Release
# uses: actions/create-release@latest
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# draft: false
# prerelease: false

0 comments on commit 768ba72

Please sign in to comment.