mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-26 12:17:19 +02:00
Update ci.yml
This commit is contained in:
parent
dfa9a9281f
commit
ec3f12635c
1 changed files with 18 additions and 30 deletions
48
.github/workflows/ci.yml
vendored
48
.github/workflows/ci.yml
vendored
|
@ -122,8 +122,8 @@ jobs:
|
||||||
token: ${{secrets.HOMEBREW_TOKEN}}
|
token: ${{secrets.HOMEBREW_TOKEN}}
|
||||||
formula: taskwarrior-tui
|
formula: taskwarrior-tui
|
||||||
|
|
||||||
debian:
|
deb_rpm:
|
||||||
name: Publish deb package
|
name: Publish deb and rpm packages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out Git repository
|
- name: Check out Git repository
|
||||||
|
@ -134,46 +134,34 @@ jobs:
|
||||||
args: --release
|
args: --release
|
||||||
- name: Install cargo-deb
|
- name: Install cargo-deb
|
||||||
run: cargo install cargo-deb
|
run: cargo install cargo-deb
|
||||||
- name: Build deb package
|
- name: Install cargo-rpm
|
||||||
run: cargo deb -p taskwarrior-tui -o target/debian/taskwarrior-tui.deb
|
run: cargo install cargo-rpm
|
||||||
|
- run: cargo deb --target arm-unknown-linux-musleabihf -p taskwarrior-tui
|
||||||
|
- run: cargo deb --target aarch64-unknown-linux-musl -p taskwarrior-tui
|
||||||
|
- run: cargo rpm build --target arm-unknown-linux-musleabihf
|
||||||
|
- run: cargo rpm build --target aarch64-unknown-linux-musl
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: taskwarrior-tui
|
name: taskwarrior-tui
|
||||||
path: target/debian/taskwarrior-tui.deb
|
path: |
|
||||||
|
target/arm-unknown-linux-musleabihf/debian/*
|
||||||
|
target/aarch64-unknown-linux-musl/debian/*
|
||||||
|
target/arm-unknown-linux-musleabihf/release/rpmbuild/RPMS/armv7hl/*
|
||||||
|
target/aarch64-unknown-linux-musl/release/rpmbuild/RPMS/aarch64/*
|
||||||
- name: Releasing assets
|
- name: Releasing assets
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
target/debian/*.deb
|
target/arm-unknown-linux-musleabihf/debian/*
|
||||||
|
target/aarch64-unknown-linux-musl/debian/*
|
||||||
|
target/arm-unknown-linux-musleabihf/release/rpmbuild/RPMS/armv7hl/*
|
||||||
|
target/aarch64-unknown-linux-musl/release/rpmbuild/RPMS/aarch64/*
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
redhat:
|
aur:
|
||||||
name: Publish rpm package
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out Git repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: --release
|
|
||||||
- name: Install rpm
|
|
||||||
run: sudo apt-get install rpm
|
|
||||||
- name: Install cargo-rpm
|
|
||||||
run: cargo install cargo-rpm
|
|
||||||
- name: Build rpm package
|
|
||||||
run: cargo rpm build
|
|
||||||
- run: ls target/release/rpmbuild/RPMs/
|
|
||||||
- name: Upload artifacts
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: taskwarrior-tui
|
|
||||||
path: target/release/rpmbuild/RPMs/
|
|
||||||
|
|
||||||
arch:
|
|
||||||
name: Publish aur package
|
name: Publish aur package
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue