Files
atmosphere/.github/workflows/build.yml
T
Christian 7f518eecc7 Signed automatic updates from GitHub Releases
- Atmosphere checks the repo's latest release and offers new versions with their notes
- Updates are signed; installed copies refuse anything not signed with the project key
- Installer, macOS and AppImage builds update themselves; portable and deb/rpm link to the download
- Release workflow builds, signs and publishes every platform with latest.json on a version tag
- Check-for-updates row and automatic check setting in Settings
- Release guide in docs/releasing.md
2026-11-18 21:25:50 -05:00

68 lines
1.9 KiB
YAML

# atmosphere · build.yml · CI: runs the tests and builds installers for Windows, macOS (Apple Silicon + Intel) and Linux.
name: build
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
name: windows-x64
- os: macos-latest
name: macos-arm64
- os: macos-13
name: macos-x64
- os: ubuntu-22.04
name: linux-x64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Linux system libraries
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Tests
run: cargo test --locked
- name: Install Tauri CLI
run: cargo install tauri-cli --version "^2" --locked
- name: Build installers
shell: bash
run: cargo tauri build --config '{"bundle":{"createUpdaterArtifacts":false}}'
- name: Portable executable
if: runner.os == 'Windows'
uses: actions/upload-artifact@v4
with:
name: atmosphere-portable-${{ matrix.name }}
path: target/release/atmosphere.exe
if-no-files-found: error
- uses: actions/upload-artifact@v4
with:
name: atmosphere-${{ matrix.name }}
path: |
target/release/bundle/**/*.msi
target/release/bundle/**/*.exe
target/release/bundle/**/*.dmg
target/release/bundle/**/*.app.tar.gz
target/release/bundle/**/*.deb
target/release/bundle/**/*.rpm
target/release/bundle/**/*.AppImage
if-no-files-found: error