Skip to content

Commit

Permalink
[CI] Move ubuntu build to reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyMeilex committed Mar 11, 2024
1 parent f4d29b6 commit 66d0592
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 15 deletions.
23 changes: 23 additions & 0 deletions .github/actions/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Ubuntu
description: Build ubuntu builds
runs:
using: "composite"
steps:
- name: Install alsa
shell: bash
run: sudo apt update && sudo apt install libasound2-dev libgtk-3-dev
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Chmod +x
shell: bash
run: chmod +x target/release/neothesia
- name: zip binary
shell: bash
run: zip -rj app.zip target/release/neothesia
- uses: actions/upload-artifact@v2
with:
name: ubuntu-artifact
path: app.zip
20 changes: 5 additions & 15 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install alsa
run: sudo apt update && sudo apt install libasound2-dev libgtk-3-dev
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Chmod +x
run: chmod +x target/release/neothesia
- name: zip binary
run: zip -rj app.zip target/release/neothesia
- uses: actions/upload-artifact@v2
with:
name: ubuntu-artifact
path: app.zip
- id: Build
uses: ./.github/actions/ubuntu.yml
- name: ls
run: ls -l app.zip

build_windows:
runs-on: windows-latest
steps:
Expand Down

0 comments on commit 66d0592

Please sign in to comment.