fix
This commit is contained in:
parent
ddea639a7b
commit
0933043237
41
.github/workflows/CI.yml
vendored
41
.github/workflows/CI.yml
vendored
@ -52,22 +52,29 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out
|
- name: Check out
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Install
|
- name: Install sdcc
|
||||||
working-directory: project
|
run: |
|
||||||
run: |
|
wget https://sourceforge.net/projects/sdcc/files/sdcc-linux-amd64/4.0.0/sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2
|
||||||
sudo apt-get install gcc-arm-none-eabi -y
|
tar -xf sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2
|
||||||
|
echo `pwd`/sdcc-4.0.0/bin >> $GITHUB_PATH
|
||||||
|
|
||||||
|
- name: Build project
|
||||||
|
if: success()
|
||||||
|
working-directory: project/JTAG
|
||||||
|
run: |
|
||||||
|
make
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: sdcc_project
|
||||||
|
path: project/JTAG
|
||||||
|
|
||||||
- name: Build
|
|
||||||
if: success()
|
|
||||||
working-directory: project/gcc
|
|
||||||
run: |
|
|
||||||
make
|
|
||||||
|
|
||||||
# - name: Download
|
# - name: Download
|
||||||
# working-directory: src
|
# working-directory: src
|
||||||
@ -99,9 +106,3 @@ jobs:
|
|||||||
# source-dir: src
|
# source-dir: src
|
||||||
# build-dir: src/output
|
# build-dir: src/output
|
||||||
# parallel: 8
|
# parallel: 8
|
||||||
|
|
||||||
- name: Upload
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: firmware
|
|
||||||
path: project/gcc/obj
|
|
||||||
|
31
.github/workflows/linux-sdcc-4.0.0.yml
vendored
31
.github/workflows/linux-sdcc-4.0.0.yml
vendored
@ -15,22 +15,23 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
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: |
|
run: |
|
||||||
wget https://sourceforge.net/projects/sdcc/files/sdcc-linux-amd64/4.0.0/sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2
|
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
|
tar -xf sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2
|
||||||
echo `pwd`/sdcc-4.0.0/bin >> $GITHUB_PATH
|
echo `pwd`/sdcc-4.0.0/bin >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: src/template
|
working-directory: src/template
|
||||||
run: make
|
run: make
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: sdcc_template
|
name: sdcc_template
|
||||||
path: src/template
|
path: src/template
|
||||||
|
@ -14,9 +14,9 @@ MAIN := $(SRC_DIR)/main.c
|
|||||||
TARGET := flashme
|
TARGET := flashme
|
||||||
|
|
||||||
# Point to SDCC toolchain folder
|
# Point to SDCC toolchain folder
|
||||||
TOOLCHAIN := ../sdcc-4.0.0/bin
|
# TOOLCHAIN := ../sdcc-4.0.0/bin
|
||||||
CC := $(TOOLCHAIN)/sdcc
|
CC := sdcc
|
||||||
OBJCOPY = $(TOOLCHAIN)/sdobjcopy
|
OBJCOPY = sdobjcopy
|
||||||
CFLAGS := \
|
CFLAGS := \
|
||||||
-mmcs51 \
|
-mmcs51 \
|
||||||
--model-large \
|
--model-large \
|
||||||
|
Loading…
Reference in New Issue
Block a user