-
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (65 loc) · 2.55 KB
/
ci-debug-builds-linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
name: Nightly builder (Linux-based ROMs)
on:
workflow_call:
env:
CARGO_TERM_COLOR: always
jobs:
build-nightlies-linux:
name: Nightly builds for ${{ matrix.rom }}/${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
rom: [gemian, sailfishos, ubports, nixos, postmarketos, droidian]
target: [aarch64-unknown-linux-musl, x86_64-unknown-linux-musl]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Cache Rust assets
id: rust-cache
uses: Swatinem/rust-cache@v2
- name: Configure Rust
if: ${{ steps.rust-cache.outputs.cache-hit != 'true' }}
uses: actions-rs/toolchain@v1
with:
toolchain: 1.76.0
default: true
components: llvm-tools-preview
override: true
target: ${{ matrix.target }}
profile: minimal
- name: Install Cross
if: ${{ steps.rust-cache.outputs.cache-hit != 'true' }}
uses: brndnmtthws/[email protected]
with:
packages: cross
- name: Build codid release for Linux-based ROMs.
id: build-linux
uses: actions-rs/cargo@v1
with:
command: build
args: >-
--all --locked --verbose --features=stock-codi,codios-codi,${{ matrix.rom
}} --target=${{ matrix.target }}
use-cross: true
- name: Zip up the artifacts
id: zipup
if: ${{ steps.build-linux.outcome == 'success' }}
run: zip ${{ github.workspace }}/codid-nightly-${{ matrix.rom }}-${{ matrix.target }}.zip ${{ github.workspace }}/target/${{ matrix.target }}/debug/codid ${{ github.workspace }}/target/${{ matrix.target }}/debug/codictl
- name: Create nightly release
continue-on-error: true
if: ${{ steps.zipup.outcome == 'success' }}
uses: actions/create-release@v1
with:
draft: false
prerelease: true
body: "Nightly build of `codid` for Linux-based ROMS: ${{ matrix.rom }}, on target: ${{ matrix.target }}"
release_name: codid-nightly-${{ matrix.rom }}-${{ matrix.target }}
tag_name: codid-nightly-${{ matrix.rom }}-${{ matrix.target }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload debug nightly build
run: gh release upload codid-nightly-${{ matrix.rom }}-${{ matrix.target }} ${{ github.workspace }}/codid-nightly-${{ matrix.rom }}-${{ matrix.target }}.zip --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}