run-upstream-build/.github/workflows/lto.yml

41 lines
872 B
YAML
Raw Normal View History

2024-07-27 20:53:14 +02:00
name: PikaOS Upstream Package Build & Release (amd64-v3 + LTO)
2024-07-27 21:02:20 +02:00
2024-07-27 20:12:37 +02:00
on:
push:
branches:
- main
paths:
2024-07-27 20:48:07 +02:00
- 'pika-build-config/lto.sh'
2024-07-27 20:12:37 +02:00
jobs:
build:
runs-on: ubuntu-latest
container:
2024-07-27 20:51:46 +02:00
image: ghcr.io/pikaos-linux/pika-base-debian-container:latest
2024-07-27 20:12:37 +02:00
volumes:
- /proc:/proc
options: --privileged -it
steps:
- uses: actions/checkout@v3
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Update APT Cache
run: apt-get update -y
- name: Set Build Config
2024-07-27 20:48:07 +02:00
run: cp -vf ./pika-build-config/ltosetup.sh ./pika-build-config.sh
2024-07-27 20:12:37 +02:00
- name: Build Package
run: ./main.sh
- name: Release Package
run: ./release.sh