Skip to content

Commit

Permalink
Linux and macOS artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
oriolarcas committed Aug 24, 2023
1 parent 79bc02f commit 5003496
Showing 1 changed file with 41 additions and 49 deletions.
90 changes: 41 additions & 49 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,32 @@ jobs:

steps:
- uses: actions/checkout@v3
# - name: Install build dependencies
# run: sudo apt-get update && sudo apt-get install -y
# libwebkit2gtk-4.0-dev
# build-essential
# curl
# wget
# file
# libssl-dev
# libgtk-3-dev
# libayatana-appindicator3-dev
# librsvg2-dev
# - name: Build
# working-directory: ./src-tauri
# run: cargo build --verbose
# - name: Run tests
# working-directory: ./src-tauri
# run: cargo test --verbose
# - name: Install React dependencies
# run: npm install
# if: startsWith(github.ref, 'refs/tags/')
# - name: Install Rust dependencies
# run: cargo install tauri-cli
# if: startsWith(github.ref, 'refs/tags/')
# - name: Build
# working-directory: ./src-tauri
# run: cargo tauri build -b deb
# if: startsWith(github.ref, 'refs/tags/')
- name: Create fake artifact
run: mkdir -p ./src-tauri/target/release/bundle/deb/ && touch ./src-tauri/target/release/bundle/deb/chusst_0.1.0_amd64.deb
- name: Install build dependencies
run: sudo apt-get update && sudo apt-get install -y
libwebkit2gtk-4.0-dev
build-essential
curl
wget
file
libssl-dev
libgtk-3-dev
libayatana-appindicator3-dev
librsvg2-dev
- name: Build
working-directory: ./src-tauri
run: cargo build --verbose
- name: Run tests
working-directory: ./src-tauri
run: cargo test --verbose
- name: Install React dependencies
run: npm install
if: startsWith(github.ref, 'refs/tags/')
- name: Install Rust dependencies
run: cargo install tauri-cli
if: startsWith(github.ref, 'refs/tags/')
- name: Build
working-directory: ./src-tauri
run: cargo tauri build -b deb
if: startsWith(github.ref, 'refs/tags/')
- name: Upload artifact
uses: actions/upload-artifact@v3
Expand All @@ -62,24 +59,21 @@ jobs:

steps:
- uses: actions/checkout@v3
# - name: Build
# working-directory: ./src-tauri
# run: cargo build --verbose
# - name: Run tests
# working-directory: ./src-tauri
# run: cargo test --verbose
# - name: Install React dependencies
# run: npm install
# if: startsWith(github.ref, 'refs/tags/')
# - name: Install Rust dependencies
# run: cargo install tauri-cli
# if: startsWith(github.ref, 'refs/tags/')
# - name: Build
# working-directory: ./src-tauri
# run: cargo tauri build -b dmg
# if: startsWith(github.ref, 'refs/tags/')
- name: Create fake artifact
run: mkdir -p ./src-tauri/target/release/bundle/dmg/ && touch ./src-tauri/target/release/bundle/dmg/chusst_0.1.0_x64.dmg
- name: Build
working-directory: ./src-tauri
run: cargo build --verbose
- name: Run tests
working-directory: ./src-tauri
run: cargo test --verbose
- name: Install React dependencies
run: npm install
if: startsWith(github.ref, 'refs/tags/')
- name: Install Rust dependencies
run: cargo install tauri-cli
if: startsWith(github.ref, 'refs/tags/')
- name: Build
working-directory: ./src-tauri
run: cargo tauri build -b dmg
if: startsWith(github.ref, 'refs/tags/')
- name: Upload artifact
uses: actions/upload-artifact@v3
Expand All @@ -101,8 +95,6 @@ jobs:
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
- name: List
run: ls -R
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit 5003496

Please sign in to comment.