This commit is contained in:
qitas 2021-05-17 11:32:24 +08:00
parent ddea639a7b
commit 0933043237
3 changed files with 40 additions and 38 deletions

View File

@ -58,17 +58,24 @@ jobs:
submodules: "recursive"
fetch-depth: 1
- name: Install
working-directory: project
- name: Install sdcc
run: |
sudo apt-get install gcc-arm-none-eabi -y
wget https://sourceforge.net/projects/sdcc/files/sdcc-linux-amd64/4.0.0/sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2
tar -xf sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2
echo `pwd`/sdcc-4.0.0/bin >> $GITHUB_PATH
- name: Build
- name: Build project
if: success()
working-directory: project/gcc
working-directory: project/JTAG
run: |
make
- uses: actions/upload-artifact@v2
with:
name: sdcc_project
path: project/JTAG
# - name: Download
# working-directory: src
# run: |
@ -99,9 +106,3 @@ jobs:
# source-dir: src
# build-dir: src/output
# parallel: 8
- name: Upload
uses: actions/upload-artifact@v2
with:
name: firmware
path: project/gcc/obj

View File

@ -15,12 +15,13 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
submodules: "recursive"
fetch-depth: 1
- name: Download SDCC
- name: Install sdcc
run: |
wget https://sourceforge.net/projects/sdcc/files/sdcc-linux-amd64/4.0.0/sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2
tar -xf sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2

View File

@ -14,9 +14,9 @@ MAIN := $(SRC_DIR)/main.c
TARGET := flashme
# Point to SDCC toolchain folder
TOOLCHAIN := ../sdcc-4.0.0/bin
CC := $(TOOLCHAIN)/sdcc
OBJCOPY = $(TOOLCHAIN)/sdobjcopy
# TOOLCHAIN := ../sdcc-4.0.0/bin
CC := sdcc
OBJCOPY = sdobjcopy
CFLAGS := \
-mmcs51 \
--model-large \