File tree Expand file tree Collapse file tree 4 files changed +33
-5
lines changed Expand file tree Collapse file tree 4 files changed +33
-5
lines changed Original file line number Diff line number Diff line change 1- name : C/C++ CI
1+ name : CI
22
33on :
44 push :
1313
1414 steps :
1515 - uses : actions/checkout@v3
16+ - name : install dependencies
17+ run : sudo apt install nasm
1618 - name : make
1719 run : make all
20+ - name : Upload artifacts
21+ uses : actions/upload-artifact@v4
22+ with :
23+ name : artifacts
24+ path : output/
25+
Original file line number Diff line number Diff line change 11.vscode /
2- build /
2+ build /
3+ output /
Original file line number Diff line number Diff line change 11BUILD = build
2+ OUTPUT = output
23SIMULATOR_FLAG := -DOPC_SIM_ENABLED
34OPC_CFLAGS = -nostdlib -nodefaultlibs
45
5- .PHONY : clean prep all
6+ .PHONY : clean prep all artifacts
67
7- all : prep $(BUILD ) /greeting $(BUILD ) /sim_greeting $( BUILD ) /sample_rom_text.txt
8+ all : prep $(BUILD ) /greeting $(BUILD ) /sim_greeting artifacts
89
910clean :
1011 rm -f $(BUILD ) /*
1112
1213prep :
1314 mkdir -p $(BUILD ) /
15+ mkdir -p $(OUTPUT ) /
1416
1517# simulator specific rules
1618$(BUILD ) /sim_o : lib/sim.c
@@ -45,5 +47,12 @@ $(BUILD)/greeting_o: greetings.c
4547$(BUILD ) /text_to_led : text_to_led.c $(BUILD ) /font_o
4648 gcc -o $@ $^ -I include/
4749
48- $(BUILD ) /sample_rom_text.txt : $(BUILD ) /text_to_led
50+ # generate artifacts
51+
52+ artifacts : $(OUTPUT ) /sample_rom_text.txt $(OUTPUT ) /objdump_greetings.txt
53+
54+ $(OUTPUT ) /sample_rom_text.txt : $(BUILD ) /text_to_led
4955 $^ " Happy Diwali!" > $@
56+
57+ $(OUTPUT ) /objdump_greetings.txt : $(BUILD ) /greeting
58+ objdump -D $(BUILD ) /greeting > $@
Original file line number Diff line number Diff line change 1+ [ ![ CI] ( https://github.com/scopeInfinity/OurPC/actions/workflows/ci.yml/badge.svg )] ( https://github.com/scopeInfinity/OurPC/actions/workflows/ci.yml )
2+
3+ # OurPC
4+ (picking a name is hard and is deferred for later)
5+
6+ The eventual goal(?) is to build a general-purpose processor integrated with simple input (e.g. buttons) and output devices (8x8 LED display).
7+
8+ ## Design
9+
10+ TBU
You can’t perform that action at this time.
0 commit comments