Bump version #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: ["v[0-9]+.[0-9]+.[0-9]+*"] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CARGO_TERM_COLOR: always | |
jobs: | |
macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: brew install scdoc | |
- name: Install ARM target | |
run: rustup update && rustup target add aarch64-apple-darwin && rustup target add x86_64-apple-darwin | |
- name: Test | |
run: cargo test --release --target=x86_64-apple-darwin | |
- name: Build ARM | |
run: cargo build --release --target=aarch64-apple-darwin | |
- name: Make DMG | |
run: make dmg-universal | |
- name: Upload Application | |
run: | | |
mv ./target/release/osx/Chartacritty.dmg ./Chartacritty-${GITHUB_REF##*/}.dmg | |
./.github/workflows/upload_asset.sh ./Chartacritty-${GITHUB_REF##*/}.dmg $GITHUB_TOKEN | |
windows: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test | |
run: cargo test --release | |
- name: Build | |
run: cargo build --release | |
- name: Upload portable executable | |
run: | | |
cp ./target/release/chartacritty.exe ./Chartacritty-${GITHUB_REF##*/}-portable.exe | |
./.github/workflows/upload_asset.sh \ | |
./Chartacritty-${GITHUB_REF##*/}-portable.exe $GITHUB_TOKEN | |
- name: Install WiX | |
run: dotnet tool install --global wix --version 4.0.5 | |
- name: Create msi installer | |
run: | | |
wix extension add WixToolset.UI.wixext/4.0.5 WixToolset.Util.wixext/4.0.5 | |
wix build -arch "x64" -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext \ | |
-out "./Chartacritty-${GITHUB_REF##*/}-installer.msi" "alacritty/windows/wix/alacritty.wxs" | |
- name: Upload msi installer | |
run: | | |
./.github/workflows/upload_asset.sh \ | |
./Chartacritty-${GITHUB_REF##*/}-installer.msi $GITHUB_TOKEN | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get install cmake pkg-config libfreetype6-dev libfontconfig1-dev \ | |
libxcb-xfixes0-dev libxkbcommon-dev python3 scdoc | |
- name: Test | |
run: cargo test --release | |
- name: Upload Assets | |
run: | | |
mv ./extra/logo/chartacritty-term.svg ./Chartacritty.svg | |
./.github/workflows/upload_asset.sh ./Chartacritty.svg $GITHUB_TOKEN | |
./.github/workflows/upload_asset.sh ./extra/linux/Chartacritty.desktop $GITHUB_TOKEN | |
./.github/workflows/upload_asset.sh ./chartacritty.yml $GITHUB_TOKEN | |
./.github/workflows/upload_asset.sh ./extra/chartacritty.info $GITHUB_TOKEN |