Skip to content

fix(deps): bump arboard from 3.2.1 to 3.3.0 #1723

fix(deps): bump arboard from 3.2.1 to 3.3.0

fix(deps): bump arboard from 3.2.1 to 3.3.0 #1723

Workflow file for this run

on:
push:
branches:
- "*"
pull_request:
workflow_dispatch:
jobs:
docker-build:
uses: PurpleBooth/common-pipelines/.github/workflows/[email protected]
lint-markdown:
uses: PurpleBooth/common-pipelines/.github/workflows/[email protected]
with:
skip_formatting: true
rust-check:
uses: PurpleBooth/common-pipelines/.github/workflows/[email protected]
with:
ubuntu_before_script: sudo apt-get install -y libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev
specdown:
uses: PurpleBooth/common-pipelines/.github/workflows/[email protected]
with:
ubuntu_before_script: sudo apt-get install -y libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev
release:
if: github.ref == 'refs/heads/main'
needs:
- docker-build
- specdown
- lint-markdown
- rust-check
outputs:
version_bump: ${{ steps.current_version.outputs.current_version != steps.previous_version.outputs.previous_version }}
current_version: ${{ steps.current_version.outputs.current_version }}
previous_version: ${{ steps.previous_version.outputs.previous_version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0
- name: Get tags
run: git fetch --tags origin
- shell: bash
run: cargo install cargo-edit
- shell: bash
run: cargo install --locked cocogitto
- id: previous_version
run: |
cog get-version | tee .version
echo "previous_version=$( cat .version )" >> "$GITHUB_OUTPUT"
rm .version
shell: bash
- name: Semver release
id: release
run: |
git config --global user.name "cog-bot"
git config --global user.email "[email protected]"
cog bump --auto
- id: current_version
run: |
cog get-version | tee .version
echo "current_version=$( cat .version )" >> "$GITHUB_OUTPUT"
rm .version
shell: bash
cargo-publish:
if: needs.release.outputs.version_bump
needs:
- release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout the repository
with:
ref: v${{ needs.release.outputs.current_version }}
- uses: actions-rs/[email protected]
with:
toolchain: stable
profile: default
- run: sudo apt-get install -y libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev
- name: Publish mit-hook-test-helper to Crates
uses: nick-invision/[email protected]
with:
timeout_minutes: 30
max_attempts: 10
command: |
cargo login "$CARGO_TOKEN"
( cd mit-hook-test-helper && cargo publish )
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
- name: Publish mit-commit-message-lints to Crates
uses: nick-invision/[email protected]
with:
timeout_minutes: 30
max_attempts: 10
command: |
cargo login "$CARGO_TOKEN"
( cd mit-commit-message-lints && cargo publish )
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
- name: Publish mit-commit-msg to Crates
uses: nick-invision/[email protected]
with:
timeout_minutes: 30
max_attempts: 10
command: |
cargo login "$CARGO_TOKEN"
( cd mit-commit-msg && cargo publish )
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
- name: Publish mit-pre-commit to Crates
uses: nick-invision/[email protected]
with:
timeout_minutes: 30
max_attempts: 10
command: |
cargo login "$CARGO_TOKEN"
( cd mit-pre-commit && cargo publish )
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
- name: Publish mit-prepare-commit-msg to Crates
uses: nick-invision/[email protected]
with:
timeout_minutes: 30
max_attempts: 10
command: |
cargo login "$CARGO_TOKEN"
( cd mit-prepare-commit-msg && cargo publish )
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
- name: Publish git-mit to Crates
uses: nick-invision/[email protected]
with:
timeout_minutes: 30
max_attempts: 10
command: |
cargo login "$CARGO_TOKEN"
( cd git-mit && cargo publish )
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
- name: Publish git-mit-config to Crates
uses: nick-invision/[email protected]
with:
timeout_minutes: 30
max_attempts: 10
command: |
cargo login "$CARGO_TOKEN"
( cd git-mit-config && cargo publish )
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
- name: Publish git-mit-install to Crates
uses: nick-invision/[email protected]
with:
timeout_minutes: 30
max_attempts: 10
command: |
cargo login "$CARGO_TOKEN"
( cd git-mit-install && cargo publish )
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
- name: Publish git-mit-relates-to to Crates
uses: nick-invision/[email protected]
with:
timeout_minutes: 30
max_attempts: 10
command: |
cargo login "$CARGO_TOKEN"
( cd git-mit-relates-to && cargo publish )
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
build:
if: needs.release.outputs.version_bump
needs:
- release
runs-on: ${{ matrix.os }}
steps:
- run: ${{ matrix.install }}
env:
DEBIAN_FRONTEND: noninteractive
- uses: actions/checkout@v4
with:
lfs: true
ref: v${{ needs.release.outputs.current_version }}
- uses: actions/cache@v3
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
path: |
~/.cargo/registry
~/.cargo/git
~/.cargo/bin
target
- uses: actions-rs/[email protected]
with:
profile: default
toolchain: stable
target: ${{ matrix.target }}
- uses: actions-rs/[email protected]
with:
args: --release --locked
command: build
- id: get_repository_name
run: echo ::set-output "name=REPOSITORY_NAME::$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//")"
shell: bash
- name: Move binary to upload location
env:
TARGET: ${{ matrix.target }}
EXTENSION: ${{ matrix.suffix }}
REPOSITORY_NAME: ${{ steps.get_repository_name.outputs.REPOSITORY_NAME }}
run: mv "./target/release/mit-commit-msg$EXTENSION" "./mit-commit-msg-$TARGET$EXTENSION"
shell: bash
- name: Move binary to upload location
env:
TARGET: ${{ matrix.target }}
EXTENSION: ${{ matrix.suffix }}
REPOSITORY_NAME: ${{ steps.get_repository_name.outputs.REPOSITORY_NAME }}
run: mv "./target/release/git-mit-config$EXTENSION" "./git-mit-config-$TARGET$EXTENSION"
shell: bash
- name: Move binary to upload location
env:
TARGET: ${{ matrix.target }}
EXTENSION: ${{ matrix.suffix }}
REPOSITORY_NAME: ${{ steps.get_repository_name.outputs.REPOSITORY_NAME }}
run: mv "./target/release/mit-pre-commit$EXTENSION" "./mit-pre-commit-$TARGET$EXTENSION"
shell: bash
- name: Move binary to upload location
env:
TARGET: ${{ matrix.target }}
EXTENSION: ${{ matrix.suffix }}
REPOSITORY_NAME: ${{ steps.get_repository_name.outputs.REPOSITORY_NAME }}
run: mv "./target/release/mit-prepare-commit-msg$EXTENSION" "./mit-prepare-commit-msg-$TARGET$EXTENSION"
shell: bash
- name: Move binary to upload location
env:
TARGET: ${{ matrix.target }}
EXTENSION: ${{ matrix.suffix }}
REPOSITORY_NAME: ${{ steps.get_repository_name.outputs.REPOSITORY_NAME }}
run: mv "./target/release/git-mit$EXTENSION" "./git-mit-$TARGET$EXTENSION"
shell: bash
- uses: actions/upload-artifact@v3
with:
name: bins
path: ./*${{ matrix.target }}${{ matrix.suffix }}
strategy:
matrix:
include:
- os: macos-latest
suffix: ""
target: aarch64-apple-darwin
install: echo nothing to install
- os: macos-latest
suffix: ""
target: x86_64-apple-darwin
install: echo nothing to install
- os: ubuntu-latest
suffix: ""
target: x86_64-unknown-linux-gnu
install: sudo apt-get install -y libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev
- os: windows-latest
suffix: .exe
target: x86_64-pc-windows-msvc
install: echo nothing to install
generate-github-release:
if: needs.release.outputs.version_bump
needs:
- release
- build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
fetch-depth: 0
ref: v${{ needs.release.outputs.current_version }}
- uses: actions/download-artifact@v3
- name: Generate a changelog
uses: PurpleBooth/[email protected]
with:
config: cliff.toml
args: --verbose --latest
output: CHANGELOG.md
- id: create_release
uses: ncipollo/[email protected]
with:
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}
bodyFile: "CHANGELOG.md"
name: Release v${{ needs.release.outputs.current_version }}
tag: v${{ needs.release.outputs.current_version }}
artifacts: ./bins/*
docker-push:
if: needs.release.outputs.version_bump
needs:
- release
uses: PurpleBooth/common-pipelines/.github/workflows/[email protected]
with:
current_version: ${{ needs.release.outputs.current_version }}
generate-formula:
if: needs.release.outputs.version_bump
needs:
- release
name: Generate Homebrew Formula
runs-on: ubuntu-latest
steps:
- uses: PurpleBooth/[email protected]
with:
current_version: ${{ needs.release.outputs.current_version }}
previous_version: ${{ needs.release.outputs.previous_version }}
committer_token: ${{ secrets.COMMITTER_TOKEN }}
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}