mirror of
https://github.com/pret/agbcc.git
synced 2026-04-25 15:35:13 -05:00
Merge ffe22ef80e into cd0ed128d6
This commit is contained in:
commit
750ea89624
42
.github/workflows/build.yml
vendored
42
.github/workflows/build.yml
vendored
|
|
@ -12,37 +12,67 @@ env:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- os: ubuntu-22.04
|
||||
gcc-version: 11
|
||||
deployable: true
|
||||
- os: ubuntu-22.04
|
||||
gcc-version: 12
|
||||
deployable: false
|
||||
- os: ubuntu-24.04
|
||||
gcc-version: 12
|
||||
deployable: false
|
||||
- os: ubuntu-24.04
|
||||
gcc-version: 13
|
||||
deployable: false
|
||||
- os: ubuntu-24.04
|
||||
gcc-version: 14
|
||||
deployable: false
|
||||
- os: macos-14
|
||||
gcc-version: 13
|
||||
deployable: false
|
||||
- os: macos-14
|
||||
gcc-version: 14
|
||||
deployable: false
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@main
|
||||
|
||||
- name: Install deps
|
||||
- name: Install deps (Linux)
|
||||
if: ${{ matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-24.04' }}
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi
|
||||
|
||||
- name: Install deps (Mac)
|
||||
if: ${{ matrix.os == 'macos-14' }}
|
||||
run: |
|
||||
brew install arm-none-eabi-binutils arm-none-eabi-gcc
|
||||
|
||||
- name: Compile
|
||||
run: sh build.sh
|
||||
run: CC=gcc-${{matrix.gcc-version}} CXX=g++-${{matrix.gcc-version}} sh build.sh
|
||||
|
||||
# No point in running the following steps if we are not deploying
|
||||
# See https://github.com/actions/runner/issues/1395 for why fromJSON() is needed
|
||||
- name: Install to temp dir
|
||||
if: fromJSON(env.IS_DEPLOY)
|
||||
if: ${{ fromJSON(env.IS_DEPLOY) && matrix.deployable }}
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir TEMPDIR
|
||||
sh install.sh TEMPDIR
|
||||
|
||||
- name: Create release archive
|
||||
if: fromJSON(env.IS_DEPLOY)
|
||||
if: ${{ fromJSON(env.IS_DEPLOY) && matrix.deployable }}
|
||||
shell: bash
|
||||
run: tar -C TEMPDIR/tools/agbcc -czf agbcc.tar.gz bin include lib
|
||||
|
||||
- name: Upload archive
|
||||
uses: actions/upload-artifact@main
|
||||
if: fromJSON(env.IS_DEPLOY)
|
||||
if: ${{ fromJSON(env.IS_DEPLOY) && matrix.deployable }}
|
||||
with:
|
||||
name: agbcc.tar.gz
|
||||
path: agbcc.tar.gz
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ VPATH = $(srcdir)
|
|||
|
||||
CC = gcc
|
||||
|
||||
BASE_CFLAGS = -g -std=gnu11 -Werror-implicit-function-declaration
|
||||
BASE_CFLAGS = -g -std=gnu11 -Werror-implicit-function-declaration -Wno-error=incompatible-pointer-types
|
||||
|
||||
INCLUDES = -I. -I$(srcdir)
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ ALLOCA_FINISH = true
|
|||
XCFLAGS =
|
||||
TCFLAGS =
|
||||
# CYGNUS LOCAL nowarnings/law
|
||||
CFLAGS = -g -Werror-implicit-function-declaration
|
||||
CFLAGS = -g -Werror-implicit-function-declaration -Wno-error=incompatible-pointer-types
|
||||
BOOT_CFLAGS = -O2 $(CFLAGS)
|
||||
WARN_CFLAGS =
|
||||
# END CYGNUS LOCAL
|
||||
|
|
|
|||
2
gcc_arm/configure
vendored
2
gcc_arm/configure
vendored
|
|
@ -1138,7 +1138,7 @@ cat > conftest.$ac_ext << EOF
|
|||
#line 1139 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
main(){return(0);}
|
||||
int main(){return(0);}
|
||||
EOF
|
||||
if { (eval echo configure:1144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
ac_cv_prog_cc_works=yes
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user