Skip to content

Commit

Permalink
qf: github workflow
Browse files Browse the repository at this point in the history
qf: github workflow

qf: github workflow

qf: github workflow

qf: github workflow

qf: github workflow

qf: github workflow

qf: github workflow
  • Loading branch information
Ph0enixKM committed Jun 16, 2024
1 parent 8ee04c4 commit 04d4535
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# 'x86_64-unknown-linux-musl'
# ]

[target.x86_64-unknown-linux-musl]
linker = "x86_64-unknown-linux-musl-gcc"
# [target.x86_64-unknown-linux-musl]
# linker = "x86_64-unknown-linux-musl-gcc"

[target.aarch64-unknown-linux-musl]
linker = "aarch64-unknown-linux-musl-gcc"
# [target.aarch64-unknown-linux-musl]
# linker = "aarch64-unknown-linux-musl-gcc"
17 changes: 11 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
# * uploads those artifacts to temporary workflow zip
# * on success, uploads the artifacts to a GitHub Release
#
# Note that a GitHub Release with this tag is assumed to exist as a draft
# with the appropriate title/body, and will be undrafted for you.
# Note that the GitHub Release will be created with a generated
# title/body based on your changelogs.

name: Release

Expand Down Expand Up @@ -41,6 +41,7 @@ on:
push:
tags:
- '**[0-9]+.[0-9]+.[0-9]+*'
pull_request:

jobs:
# Run 'cargo dist plan' (or host) to determine what tasks we need to do
Expand Down Expand Up @@ -125,6 +126,12 @@ jobs:
- name: Install dependencies
run: |
${{ matrix.packages_install }}
- name: Install MUSL dependencies
if: contains(matrix.targets, 'x86_64-unknown-linux-musl')
run: |
rustup target add x86_64-unknown-linux-musl
sudo apt-get update
sudo apt-get install -y musl-tools musl-dev
- name: Build artifacts
run: |
# Actually do builds and make zips and whatnot
Expand Down Expand Up @@ -264,9 +271,7 @@ jobs:
uses: ncipollo/release-action@v1
with:
tag: ${{ needs.plan.outputs.tag }}
allowUpdates: true
updateOnlyUnreleased: false
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
name: ${{ fromJson(needs.host.outputs.val).announcement_title }}
body: ${{ fromJson(needs.host.outputs.val).announcement_github_body }}
prerelease: ${{ fromJson(needs.host.outputs.val).announcement_is_prerelease }}
artifacts: "artifacts/*"
6 changes: 2 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ installers = []
# Target platforms to build apps for (Rust target-triple syntax)
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl"]
# Publish jobs to run in CI
pr-run-mode = "skip"
# Whether cargo-dist should create a Github Release or use an existing draft
create-release = false
# Skip checking whether the specified configuration files are up to date
pr-run-mode = "plan"
# Allow modifying release.yml
allow-dirty = ["ci"]

0 comments on commit 04d4535

Please sign in to comment.