|
| 1 | +name: "Lite" |
| 2 | +on: |
| 3 | + schedule: |
| 4 | + - cron: "0 2 * * *" |
| 5 | + workflow_dispatch: {} |
| 6 | + |
| 7 | +env: |
| 8 | + RUST_BACKTRACE: full |
| 9 | + |
| 10 | +concurrency: |
| 11 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 12 | + cancel-in-progress: true |
| 13 | + |
| 14 | +permissions: {} |
| 15 | + |
| 16 | +jobs: |
| 17 | + build: |
| 18 | + runs-on: ${{ matrix.platform }} |
| 19 | + strategy: |
| 20 | + fail-fast: false |
| 21 | + matrix: |
| 22 | + include: |
| 23 | + - platform: macos-15 # [macOs, ARM64] |
| 24 | + - platform: ubuntu-22.04 # [linux, x64] |
| 25 | + - platform: windows-latest # [windows, x64] |
| 26 | + env: |
| 27 | + CARGO_TERM_COLOR: always |
| 28 | + CARGO_PROFILE_RELEASE_LTO: fat |
| 29 | + CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 1 |
| 30 | + CARGO_PROFILE_RELEASE_OPT_LEVEL: s |
| 31 | + steps: |
| 32 | + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 33 | + with: |
| 34 | + persist-credentials: false |
| 35 | + - name: Install system dependencies |
| 36 | + if: runner.os == 'Linux' |
| 37 | + run: | |
| 38 | + sudo apt-get update |
| 39 | + sudo apt-get -y install pkg-config libxss-dev libdbus-1-dev |
| 40 | + - uses: ./.github/actions/init-env-node |
| 41 | + - name: Set version |
| 42 | + working-directory: apps/lite |
| 43 | + run: pnpm version "0.0.${{ github.run_number }}" --no-git-tag-version |
| 44 | + - name: Build |
| 45 | + env: |
| 46 | + CHANNEL: nightly |
| 47 | + VERSION: "0.0.${{ github.run_number }}" |
| 48 | + run: | |
| 49 | + pnpm --filter @gitbutler/but-sdk build |
| 50 | + pnpm --filter @gitbutler/lite bundle |
| 51 | +
|
| 52 | + - uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 |
| 53 | + name: Upload artifacts |
| 54 | + with: |
| 55 | + name: gitbutler-lite-${{ github.run_number }}-${{ matrix.platform }} |
| 56 | + path: apps/lite/release/ |
| 57 | + if-no-files-found: error |
| 58 | + retention-days: 7 |
0 commit comments