diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 157b686..22e29d2 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -1,4 +1,4 @@ -name: run floppinux in qemu +name: compile nano on: push: @@ -6,18 +6,27 @@ on: - main jobs: - run-floppinux-in-qemu: + compile-nano: runs-on: archlinux-latest container: image: archlinux:latest steps: - - name: download img + - name: install packages and prepare source run: | - pacman -Sy wget qemu-system-x86 --noconfirm - wget https://cat.fs.tlpteam.ru/floppinux_0.1.0.img + pacman -Sy wget base-devel --noconfirm + wget https://www.nano-editor.org/dist/v8/nano-8.6.tar.xz + tar -xvf nano-8.6.tar.xz - - name: run img + - name: compile nano run: | - qemu-system-x86_64 -fda floppinux_0.1.0.img -m 50 -nographic \ No newline at end of file + cd nano-8.6 + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --enable-utf8 + make -j$(nproc) + make install + + - name: run nano + run: nano \ No newline at end of file