This commit is contained in:
briaguya 2024-12-14 21:41:47 -05:00 committed by GitHub
commit 750ea89624
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 39 additions and 9 deletions

View File

@ -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

View File

@ -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)

View File

@ -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
View File

@ -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