Skip to content

Commit fd57a56

Browse files
authored
prepare for release (#24)
1 parent 9c84295 commit fd57a56

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

.github/workflows/ci.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
on: [pull_request]
1+
on: [push, pull_request]
22
name: CI
33
jobs:
44
ubuntu-latest:
@@ -25,6 +25,15 @@ jobs:
2525
diff -u <(echo -n) <(gofmt -d $(find . -type f -name '*.go'))
2626
mage -v iso
2727
28+
- name: Release
29+
uses: softprops/action-gh-release@v1
30+
if: startsWith(github.ref, 'refs/tags/')
31+
with:
32+
files: eggos.iso
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
36+
2837
macos-latest:
2938
runs-on: macos-latest
3039
steps:

README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,29 @@ In general, writing kernel in Go is a very interesting experience. On the one ha
3838
# Dependencies
3939

4040
- Go 1.13.x (only tested on Go1.13.x)
41-
- i386-elf-gcc
41+
- gcc
4242
- qemu
43+
- mage
4344

4445
## MacOS
4546

4647
``` bash
47-
$ brew tap nativeos/i386-elf-toolchain
48-
$ brew install i386-elf-binutils i386-elf-gcc i386-elf-gdb
48+
$ go get github.com/magefile/mage
49+
$ brew install x86_64-elf-binutils x86_64-elf-gcc x86_64-elf-gdb
4950
$ brew install qemu
5051
```
5152

5253
## Ubuntu
5354

5455
``` bash
56+
$ go get github.com/magefile/mage
5557
$ sudo apt-get install build-essential qemu
5658
```
5759

5860
# Quickstart
5961

6062
``` bash
61-
$ make
62-
$ make qemu
63+
$ mage qemu
6364
```
6465

6566
# Debug
@@ -69,12 +70,12 @@ You can directly use the gdb command to debug, or use vscode for graphical debug
6970
First you need to install gdb, if you are under macos, execute the following command
7071

7172
``` bash
72-
brew install i386-elf-gdb
73+
brew install x86_64-elf-gdb
7374
```
7475

7576
Use the extension `Native Debug` in vscode to support debugging with gdb
7677

77-
First execute the `make qemu-debug` command to let qemu start the gdb server, and then use the debug function of vscode to start a debug session. The debug configuration file of vscode is built into the project.
78+
First execute the `mage qemudebug` command to let qemu start the gdb server, and then use the debug function of vscode to start a debug session. The debug configuration file of vscode is built into the project.
7879

7980
Go provides simple support for gdb, see [Debugging Go Code with GDB](https://golang.org/doc/gdb) for details
8081

magefile.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var (
2626
)
2727

2828
var (
29-
GOTAGS = ""
29+
GOTAGS = "nes"
3030
)
3131

3232
var (

0 commit comments

Comments
 (0)