2023-11-17 22:01:33 +03:00
|
|
|
name: release
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2023-11-30 17:04:07 +03:00
|
|
|
inputs:
|
|
|
|
test_label:
|
|
|
|
required: true
|
|
|
|
type: string
|
2023-11-17 22:01:33 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
x86_64:
|
2023-11-30 17:04:07 +03:00
|
|
|
runs-on: ubuntu-latest
|
2023-11-17 22:01:33 +03:00
|
|
|
|
2023-11-30 17:04:07 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: install depends
|
|
|
|
run: sudo apt install clang-format python3 git gdisk gcc g++ xorriso make mtools curl dos2unix
|
|
|
|
|
|
|
|
- name: install limine
|
|
|
|
run: |
|
|
|
|
git clone https://git.synapseos.ru/Aren/limine.git --branch=v5.x-branch-binary --depth=1
|
|
|
|
cd limine && make && cd ..
|
2023-11-17 22:01:33 +03:00
|
|
|
|
2023-11-30 17:04:07 +03:00
|
|
|
- name: build
|
|
|
|
run: |
|
|
|
|
dos2unix *.sh
|
|
|
|
chmod +x build.sh
|
|
|
|
./build.sh
|
2023-11-17 22:01:33 +03:00
|
|
|
|
2023-11-30 17:04:07 +03:00
|
|
|
- name: save
|
|
|
|
run: |
|
|
|
|
mkdir -p ${{ github.workspace }}/rel
|
|
|
|
cp ${{ github.workspace }}/kernel.elf ${{ github.workspace }}/rel/
|
|
|
|
cp ${{ github.workspace }}/bmosp.hdd ${{ github.workspace }}/rel/
|
|
|
|
cp ${{ github.workspace }}/bmosp.iso ${{ github.workspace }}/rel/
|
|
|
|
cp ${{ github.workspace }}/LICENSE ${{ github.workspace }}/rel/
|
2023-11-18 15:29:14 +03:00
|
|
|
|
2023-11-30 17:04:07 +03:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: bmosp.hdd
|
|
|
|
path: ${{ github.workspace }}/bmosp.hdd
|
2023-11-17 22:01:33 +03:00
|
|
|
|
2023-11-30 17:04:07 +03:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: bmosp.iso
|
|
|
|
path: ${{ github.workspace }}/bmosp.iso
|
2023-11-17 22:01:33 +03:00
|
|
|
|
2023-11-30 17:04:07 +03:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: kernel.elf
|
|
|
|
path: ${{ github.workspace }}/kernel.elf
|
2023-11-17 22:01:33 +03:00
|
|
|
|
2023-11-30 17:04:07 +03:00
|
|
|
- name: check
|
|
|
|
run: |
|
|
|
|
echo ${{ github.workspace }}/rel/
|
|
|
|
ls -la ${{ github.workspace }}/rel/
|
|
|
|
|
|
|
|
- name: release
|
|
|
|
uses: softprops/action-gh-release@v0.1.15
|
|
|
|
with:
|
|
|
|
name: ${{ inputs.test_label }}
|
|
|
|
tag_name: autobuild
|
|
|
|
draft: true
|
|
|
|
files: |
|
|
|
|
${{ github.workspace }}/rel/kernel.elf
|
|
|
|
${{ github.workspace }}/rel/bmosp.hdd
|
|
|
|
${{ github.workspace }}/rel/bmosp.iso
|
|
|
|
${{ github.workspace }}/rel/LICENSE
|
2023-11-19 09:50:15 +03:00
|
|
|
|
2023-11-30 17:04:07 +03:00
|
|
|
body: |
|
|
|
|
${{ inputs.test_label }}
|
2023-11-17 22:11:25 +03:00
|
|
|
|
2023-11-30 17:04:07 +03:00
|
|
|
Использовать на свой страх и риск. Система расчитана на работу в эмулируемой среде Qemu под процессоры x86_64.
|
|
|
|
Мы не несем ответственности за нанесенный ущерб.
|