2020-11-06 18:52:56 -05:00
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-11-13 22:51:40 -05:00
|
|
|
tags: ["v[0-9]+.[0-9]+.[0-9]+*"]
|
2020-11-06 18:52:56 -05:00
|
|
|
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
macos:
|
2024-07-02 12:55:26 -04:00
|
|
|
runs-on: macos-latest
|
2020-11-06 18:52:56 -05:00
|
|
|
|
|
|
|
steps:
|
2024-08-31 04:35:48 -04:00
|
|
|
- uses: actions/checkout@v4
|
2023-05-29 05:22:15 -04:00
|
|
|
- name: Install dependencies
|
|
|
|
run: brew install scdoc
|
2021-08-17 14:04:46 -04:00
|
|
|
- name: Install ARM target
|
2024-07-02 12:55:26 -04:00
|
|
|
run: rustup update && rustup target add aarch64-apple-darwin && rustup target add x86_64-apple-darwin
|
2020-11-06 18:52:56 -05:00
|
|
|
- name: Test
|
2024-07-02 12:55:26 -04:00
|
|
|
run: cargo test --release --target=x86_64-apple-darwin
|
2022-01-12 21:23:37 -05:00
|
|
|
- name: Build ARM
|
|
|
|
run: cargo build --release --target=aarch64-apple-darwin
|
2021-08-17 14:04:46 -04:00
|
|
|
- name: Make DMG
|
|
|
|
run: make dmg-universal
|
2020-11-06 18:52:56 -05:00
|
|
|
- name: Upload Application
|
|
|
|
run: |
|
|
|
|
mv ./target/release/osx/Alacritty.dmg ./Alacritty-${GITHUB_REF##*/}.dmg
|
|
|
|
./.github/workflows/upload_asset.sh ./Alacritty-${GITHUB_REF##*/}.dmg $GITHUB_TOKEN
|
|
|
|
|
|
|
|
windows:
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
steps:
|
2024-08-31 04:35:48 -04:00
|
|
|
- uses: actions/checkout@v4
|
2020-11-06 18:52:56 -05:00
|
|
|
- name: Test
|
|
|
|
run: cargo test --release
|
|
|
|
- name: Build
|
|
|
|
run: cargo build --release
|
|
|
|
- name: Upload portable executable
|
|
|
|
run: |
|
|
|
|
cp ./target/release/alacritty.exe ./Alacritty-${GITHUB_REF##*/}-portable.exe
|
|
|
|
./.github/workflows/upload_asset.sh \
|
|
|
|
./Alacritty-${GITHUB_REF##*/}-portable.exe $GITHUB_TOKEN
|
|
|
|
- name: Install WiX
|
2024-03-24 00:00:41 -04:00
|
|
|
run: dotnet tool install --global wix --version 4.0.5
|
|
|
|
- name: Create msi installer
|
2020-11-06 18:52:56 -05:00
|
|
|
run: |
|
2024-03-24 00:00:41 -04:00
|
|
|
wix extension add WixToolset.UI.wixext/4.0.5 WixToolset.Util.wixext/4.0.5
|
2023-06-25 17:01:50 -04:00
|
|
|
wix build -arch "x64" -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext \
|
|
|
|
-out "./Alacritty-${GITHUB_REF##*/}-installer.msi" "alacritty/windows/wix/alacritty.wxs"
|
2020-11-06 18:52:56 -05:00
|
|
|
- name: Upload msi installer
|
|
|
|
run: |
|
|
|
|
./.github/workflows/upload_asset.sh \
|
|
|
|
./Alacritty-${GITHUB_REF##*/}-installer.msi $GITHUB_TOKEN
|
|
|
|
|
|
|
|
linux:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-08-31 04:35:48 -04:00
|
|
|
- uses: actions/checkout@v4
|
2020-11-06 18:52:56 -05:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get install cmake pkg-config libfreetype6-dev libfontconfig1-dev \
|
2023-05-28 06:13:09 -04:00
|
|
|
libxcb-xfixes0-dev libxkbcommon-dev python3 scdoc
|
2020-11-06 18:52:56 -05:00
|
|
|
- name: Test
|
|
|
|
run: cargo test --release
|
2023-05-28 06:13:09 -04:00
|
|
|
- name: Generate manpages
|
2021-11-08 18:22:09 -05:00
|
|
|
run: |
|
2023-05-28 06:13:09 -04:00
|
|
|
scdoc < extra/man/alacritty.1.scd | gzip -c > "./alacritty.1.gz"
|
|
|
|
scdoc < extra/man/alacritty-msg.1.scd | gzip -c > "./alacritty-msg.1.gz"
|
2023-06-11 20:23:41 -04:00
|
|
|
scdoc < extra/man/alacritty.5.scd | gzip -c > "./alacritty.5.gz"
|
|
|
|
scdoc < extra/man/alacritty-bindings.5.scd | gzip -c > "./alacritty-bindings.5.gz"
|
2020-11-06 18:52:56 -05:00
|
|
|
- name: Upload Assets
|
|
|
|
run: |
|
|
|
|
mv ./extra/logo/alacritty-term.svg ./Alacritty.svg
|
|
|
|
./.github/workflows/upload_asset.sh ./Alacritty.svg $GITHUB_TOKEN
|
|
|
|
./.github/workflows/upload_asset.sh ./alacritty.1.gz $GITHUB_TOKEN
|
2021-11-08 18:22:09 -05:00
|
|
|
./.github/workflows/upload_asset.sh ./alacritty-msg.1.gz $GITHUB_TOKEN
|
2023-10-29 17:54:42 -04:00
|
|
|
./.github/workflows/upload_asset.sh ./alacritty.5.gz $GITHUB_TOKEN
|
|
|
|
./.github/workflows/upload_asset.sh ./alacritty-bindings.5.gz $GITHUB_TOKEN
|
2020-11-06 18:52:56 -05:00
|
|
|
./.github/workflows/upload_asset.sh ./extra/completions/alacritty.bash $GITHUB_TOKEN
|
|
|
|
./.github/workflows/upload_asset.sh ./extra/completions/alacritty.fish $GITHUB_TOKEN
|
|
|
|
./.github/workflows/upload_asset.sh ./extra/completions/_alacritty $GITHUB_TOKEN
|
|
|
|
./.github/workflows/upload_asset.sh ./extra/linux/Alacritty.desktop $GITHUB_TOKEN
|
|
|
|
./.github/workflows/upload_asset.sh ./extra/alacritty.info $GITHUB_TOKEN
|