mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-27 06:37:19 +02:00
Update ci.yml
This commit is contained in:
parent
60560a4b31
commit
9c0066ea29
1 changed files with 36 additions and 22 deletions
58
.github/workflows/ci.yml
vendored
58
.github/workflows/ci.yml
vendored
|
@ -122,43 +122,57 @@ jobs:
|
||||||
token: ${{secrets.HOMEBREW_TOKEN}}
|
token: ${{secrets.HOMEBREW_TOKEN}}
|
||||||
formula: taskwarrior-tui
|
formula: taskwarrior-tui
|
||||||
|
|
||||||
deb_rpm:
|
deb:
|
||||||
name: Publish deb and rpm packages
|
name: Publish deb package
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Check out Git repository
|
||||||
- uses: actions-rs/toolchain@v1
|
uses: actions/checkout@v2
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
command: build
|
||||||
- run: rustup target add arm-unknown-linux-musleabihf
|
args: --release
|
||||||
- run: rustup target add aarch64-unknown-linux-musl
|
- name: Install cargo-deb
|
||||||
- run: cargo install cargo-deb
|
run: cargo install cargo-deb
|
||||||
- run: cargo install cargo-rpm
|
- name: Build deb package
|
||||||
- run: cargo deb --target arm-unknown-linux-musleabihf -p taskwarrior-tui
|
run: cargo deb -p taskwarrior-tui -o target/debian/taskwarrior-tui.deb
|
||||||
- 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: |
|
path: target/debian/taskwarrior-tui.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/*
|
|
||||||
- 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/arm-unknown-linux-musleabihf/debian/*
|
target/debian/*.deb
|
||||||
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 }}
|
||||||
|
|
||||||
|
rpm:
|
||||||
|
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
|
||||||
|
- run: tree
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: taskwarrior-tui
|
||||||
|
path: target/release/rpmbuild/RPMs/x86_64/taskwarrior-tui-*.rpm
|
||||||
aur:
|
aur:
|
||||||
name: Publish aur package
|
name: Publish aur package
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue