Move to GitHub: ELY-Open-Source/ELYTerminal, Ely from GitHub, CI on the org's runners, releases and the update check through GitHub

This commit is contained in:
雷电芽衣 committed 2026-10-19 20:26:38 -04:00
1 parent 7d06bdec8a
commit 616bec2615
10 files changed
+44 -74

No files matched your search

+17 -26
View File
@@ -7,7 +7,7 @@ on:
jobs:
macos:
runs-on: macos-latest
runs-on: [self-hosted, macos-arm64]
steps:
- uses: actions/checkout@v7
# The runner's PATH lacks the host's rustup.
@@ -16,36 +16,27 @@ jobs:
- run: scripts/check.sh
- run: cargo build --locked
platforms:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, windows-latest]
runs-on: ${{ matrix.os }}
# Debuginfo makes the Linux link outgrow its VM's memory.
windows:
runs-on: [self-hosted, ely-windows]
env:
CARGO_PROFILE_DEV_DEBUG: 0
steps:
- uses: actions/checkout@v7
# The job container comes without rustup.
- if: runner.os == 'Linux'
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain none
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- run: rustup toolchain install --no-self-update
# On a host runner its post step deletes the host's rustup.
- if: runner.os == 'Linux'
uses: Swatinem/rust-cache@v2
- if: runner.os != 'Linux'
run: cargo test --locked --quiet
# The Linux job container runs as root, which ignores the file permissions the tests check.
- if: runner.os == 'Linux'
run: |
apt-get update && apt-get install -y --no-install-recommends pkg-config libwayland-dev \
- run: cargo test --locked --quiet
- run: cargo build --locked
linux:
runs-on: ubuntu-24.04
env:
CARGO_PROFILE_DEV_DEBUG: 0
steps:
- uses: actions/checkout@v7
- run: rustup toolchain install --no-self-update
- uses: Swatinem/rust-cache@v2
- run: |
sudo apt-get update && sudo apt-get install -y --no-install-recommends pkg-config libwayland-dev \
libxkbcommon-dev libxkbcommon-x11-dev libxcb1-dev libx11-xcb-dev libfontconfig-dev \
libfreetype-dev zsh fish xvfb
useradd --create-home ci
chmod o+x "$HOME"
chown -R ci "$GITHUB_WORKSPACE" "$HOME/.cargo" "$HOME/.rustup"
runuser -u ci -- env HOME=/home/ci CARGO_HOME="$HOME/.cargo" RUSTUP_HOME="$HOME/.rustup" PATH="$PATH" cargo test --locked --quiet
- run: cargo test --locked --quiet
- run: cargo build --locked
+4 -3
View File
@@ -7,7 +7,9 @@ on:
jobs:
macos:
# The owner's login session, whose keychain holds the Developer ID identity.
runs-on: macos-signing
runs-on: [self-hosted, macos-signing]
permissions:
contents: write
steps:
- uses: actions/checkout@v7
# The runner's PATH lacks the host's rustup.
@@ -26,8 +28,7 @@ jobs:
scripts/mac-app.sh
- name: Put the disk image on the release
env:
RELEASE_API: ${{ github.server_url }}/api/v1/repos/${{ github.repository }}
RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
version=$(cargo pkgid)
scripts/release-asset.sh "target/release/ELYTerminal-${version##*[#@]}.dmg"