Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Move ubuntu build to reusable workflow #159

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/ubuntu/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Ubuntu
description: Build ubuntu builds
runs:
using: "composite"
steps:
- uses: actions/checkout@v2
- 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
21 changes: 5 additions & 16 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,11 @@ jobs:
build_ubuntu:
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/ubuntu
- name: ls
run: ls -l app.zip

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