Skip to content

修复了一个不起眼的内存泄漏。 #562

修复了一个不起眼的内存泄漏。

修复了一个不起眼的内存泄漏。 #562

Workflow file for this run

name: CI Workflow
on:
push:
branches: [ "main" ]
paths-ignore:
- 'readme'
- '.gitignore'
- 'README.md'
pull_request:
branches: [ "main" ]
paths-ignore:
- 'readme'
- '.gitignore'
- 'README.md'
jobs:
i386:
runs-on: ubuntu-latest
name: i386
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: xorriso nasm mtools
version: 1.0
- name: Setup xmake
uses: wenxuanjun/github-action-setup-xmake@master
with:
xmake-version: latest
actions-cache-folder: '.xmake-cache'
actions-cache-key: ${{ matrix.os }}
build-cache: true
build-cache-key: ${{ matrix.os }}
package-cache: true
package-cache-key: ${{ matrix.os }}
- name: Build CoolPotOS-i386
run: |
xmake f -y --arch=i686
xmake build iso
- name: Upload CoolPotOS-i386 ISO
uses: actions/upload-artifact@v4
with:
name: CoolPotOS-i386 (ISO)
path: build/CoolPotOS.iso
compression-level: 9
x86_64:
runs-on: ubuntu-latest
name: x86_64
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install OS image builder
uses: baptiste0928/cargo-install@v3
with:
crate: oib
- name: Install cbindgen
uses: baptiste0928/cargo-install@v3
with:
crate: cbindgen
- name: Install packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: xorriso clang mtools lld
version: 1.0
- name: Setup xmake
uses: wenxuanjun/github-action-setup-xmake@master
with:
xmake-version: latest
actions-cache-folder: '.xmake-cache'
build-cache: true
package-cache: true
- name: Build CoolPotOS-x86_64
run: |
xmake f -y --arch=x86_64
xmake build e1000
xmake build extfs
xmake build nvme
xmake build hid
xmake build xhci
xmake build iso
xmake build img
- name: Upload CoolPotOS-x86_64 ISO
uses: actions/upload-artifact@v4
with:
name: CoolPotOS-x86_64 (ISO)
path: build/CoolPotOS.iso
compression-level: 9
- name: Upload CoolPotOS-x86_64 IMG
uses: actions/upload-artifact@v4
with:
name: CoolPotOS-x86_64 (IMG)
path: build/CoolPotOS.img
compression-level: 9