mirror of
https://github.com/house-of-vanity/rexec.git
synced 2025-07-07 16:54:07 +00:00
Improve actions
This commit is contained in:
71
.github/workflows/release.yml
vendored
71
.github/workflows/release.yml
vendored
@ -29,42 +29,35 @@ jobs:
|
|||||||
name: ${{ env.BINARY_NAME }}_x86_64-linux-musl
|
name: ${{ env.BINARY_NAME }}_x86_64-linux-musl
|
||||||
path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}
|
path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}
|
||||||
|
|
||||||
build_arch:
|
# build_arch:
|
||||||
name: Arch Linux package
|
# name: Arch Linux package
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
permissions:
|
# permissions:
|
||||||
contents: write
|
# contents: write
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- name: Install latest nightly
|
# - name: Install latest nightly
|
||||||
uses: actions-rs/toolchain@v1
|
# uses: actions-rs/toolchain@v1
|
||||||
with:
|
# with:
|
||||||
toolchain: stable
|
# toolchain: stable
|
||||||
override: true
|
# override: true
|
||||||
target: x86_64-unknown-linux-musl
|
# target: x86_64-unknown-linux-musl
|
||||||
components: rustfmt
|
# components: rustfmt
|
||||||
- name: Install cargo-aur
|
# - name: Install cargo-aur
|
||||||
run: cargo install cargo-aur
|
# run: cargo install cargo-aur
|
||||||
- name: Build PKGBUILD
|
# - name: Build PKGBUILD
|
||||||
uses: actions-rs/cargo@v1
|
# uses: actions-rs/cargo@v1
|
||||||
with:
|
# with:
|
||||||
command: aur
|
# command: aur
|
||||||
- name: Build archlinux package
|
# - uses: actions/upload-artifact@v2
|
||||||
uses: mijailr/arch-makepkg-action@1.0.1
|
# name: Upload artifact PKGBUILD
|
||||||
- uses: actions/upload-artifact@v2
|
# with:
|
||||||
name: Upload artifact PKGBUILD
|
# path: PKGBUILD
|
||||||
with:
|
# name: PKGBUILD
|
||||||
path: PKGBUILD
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
name: Upload artifact Package
|
|
||||||
with:
|
|
||||||
path: .*\.zst
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Release binary
|
name: Release binary
|
||||||
needs: ["build", "build_arch"]
|
needs: ["build"]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@ -74,14 +67,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ${{ env.BINARY_NAME }}_x86_64-linux-musl
|
name: ${{ env.BINARY_NAME }}_x86_64-linux-musl
|
||||||
path: ${{ env.BINARY_NAME }}_x86_64-linux-musl
|
path: ${{ env.BINARY_NAME }}_x86_64-linux-musl
|
||||||
- uses: actions/download-artifact@master
|
# - uses: actions/download-artifact@master
|
||||||
id: download_pkgbuild
|
# id: download_pkgbuild
|
||||||
with:
|
# with:
|
||||||
name: PKGBUILD
|
# name: PKGBUILD
|
||||||
path: PKGBUILD
|
# path: PKGBUILD
|
||||||
- uses: ncipollo/release-action@v1
|
- uses: ncipollo/release-action@v1
|
||||||
name: Update release page
|
name: Update release page
|
||||||
with:
|
with:
|
||||||
artifacts: "${{ steps.download_pkgbuild.outputs.download-path }}/*,${{ steps.download_binary.outputs.download-path }}/*"
|
artifacts: "${{ steps.download_binary.outputs.download-path }}/*"
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
body: Static build for x86_64-linux using MUSL
|
body: Static build for x86_64-linux using MUSL
|
||||||
|
Reference in New Issue
Block a user