-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
212 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |