Update cargo-dist to v0.22.1

Necessary to make use of the custom github build steps.
This commit is contained in:
KtorZ 2024-10-02 10:27:00 +02:00
parent 5204831bac
commit b0cad2bf1d
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
3 changed files with 18 additions and 10 deletions

View File

@ -1,4 +1,5 @@
- if: ${{ runner.os == 'Linux' }} - name: Musl build setup
if: ${{ runner.os == 'Linux' }}
run: | run: |
sudo apt-get install -y pkg-config libssl-dev musl musl-dev musl-tools sudo apt-get install -y pkg-config libssl-dev musl musl-dev musl-tools
rustup target add x86_64-unknown-linux-musl rustup target add x86_64-unknown-linux-musl

View File

@ -1,3 +1,5 @@
# This file was autogenerated by cargo-dist: https://opensource.axo.dev/cargo-dist/
#
# Copyright 2022-2024, axodotdev # Copyright 2022-2024, axodotdev
# SPDX-License-Identifier: MIT or Apache-2.0 # SPDX-License-Identifier: MIT or Apache-2.0
# #
@ -61,7 +63,7 @@ jobs:
# we specify bash to get pipefail; it guards against the `curl` command # we specify bash to get pipefail; it guards against the `curl` command
# failing. otherwise `sh` won't catch that `curl` returned non-0 # failing. otherwise `sh` won't catch that `curl` returned non-0
shell: bash shell: bash
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.19.1/cargo-dist-installer.sh | sh" run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.22.1/cargo-dist-installer.sh | sh"
- name: Cache cargo-dist - name: Cache cargo-dist
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
@ -115,6 +117,11 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
- name: "Musl build setup"
if: "${{ runner.os == 'Linux' }}"
run: |
sudo apt-get install -y pkg-config libssl-dev musl musl-dev musl-tools
rustup target add x86_64-unknown-linux-musl
- name: Install cargo-dist - name: Install cargo-dist
run: ${{ matrix.install_dist }} run: ${{ matrix.install_dist }}
# Get the dist-manifest # Get the dist-manifest
@ -299,6 +306,11 @@ jobs:
name=$(echo "$filename" | sed "s/\.rb$//") name=$(echo "$filename" | sed "s/\.rb$//")
version=$(echo "$release" | jq .app_version --raw-output) version=$(echo "$release" | jq .app_version --raw-output)
export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
brew update
# We avoid reformatting user-provided data such as the app description and homepage.
brew style --except-cops FormulaAudit/Homepage,FormulaAudit/Desc,FormulaAuditStrict --fix "Formula/${filename}" || true
git add "Formula/${filename}" git add "Formula/${filename}"
git commit -m "${name} ${version}" git commit -m "${name} ${version}"
done done

View File

@ -9,7 +9,7 @@ tag-name = "v{{version}}"
# Config for 'cargo dist' # Config for 'cargo dist'
[workspace.metadata.dist] [workspace.metadata.dist]
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax) # The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.19.1" cargo-dist-version = "0.22.1"
# CI backends to support # CI backends to support
ci = "github" ci = "github"
# The installers to generate for each app # The installers to generate for each app
@ -17,12 +17,7 @@ installers = ["shell", "powershell", "npm", "homebrew"]
# A GitHub repo to push Homebrew formulas to # A GitHub repo to push Homebrew formulas to
tap = "aiken-lang/homebrew-tap" tap = "aiken-lang/homebrew-tap"
# Target platforms to build apps for (Rust target-triple syntax) # Target platforms to build apps for (Rust target-triple syntax)
targets = [ targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-musl", "x86_64-pc-windows-msvc"]
"aarch64-apple-darwin",
"x86_64-apple-darwin",
"x86_64-unknown-linux-musl",
"x86_64-pc-windows-msvc",
]
# The archive format to use for windows builds (defaults .zip) # The archive format to use for windows builds (defaults .zip)
windows-archive = ".tar.gz" windows-archive = ".tar.gz"
# The archive format to use for non-windows builds (defaults .tar.xz) # The archive format to use for non-windows builds (defaults .tar.xz)
@ -31,7 +26,7 @@ unix-archive = ".tar.gz"
npm-scope = "@aiken-lang" npm-scope = "@aiken-lang"
# Publish jobs to run in CI # Publish jobs to run in CI
publish-jobs = ["homebrew", "npm"] publish-jobs = ["homebrew", "npm"]
# Publish jobs to run in CI # Which actions to run on pull requests
pr-run-mode = "plan" pr-run-mode = "plan"
# Whether to install an updater program # Whether to install an updater program
install-updater = false install-updater = false