Skip to content

Commit

Permalink
Update to GCC 13.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartatz committed Sep 2, 2023
1 parent 9d87607 commit 08a5f85
Show file tree
Hide file tree
Showing 13 changed files with 310 additions and 75 deletions.
77 changes: 70 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,81 @@ on:
- '**'

jobs:
build:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
native-build:
name: 'Native build'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
submodules: true
- name: Run build script
run: bash ./build.sh
- name: Build Nul
run: |
bash './build.sh' 'native'
- name: Generate tarball
run: |
declare tarball_filename='/tmp/x86_64-linux-gnu.tar.xz'
tar --directory='/tmp' --create --file=- 'nul' | xz --threads='0' --compress -9 > "${tarball_filename}"
sha256sum "${tarball_filename}" | sed 's|/tmp/||' > "${tarball_filename}.sha256"
- name: Upload artifact
uses: actions/upload-artifact@main
with:
path: ./tizen-cross.tar.xz
name: native-toolchain
if-no-files-found: error
path: |
/tmp/x86_64-linux-gnu.tar.xz
/tmp/x86_64-linux-gnu.tar.xz.sha256
cross-build:
name: 'Cross build'
needs: native-build
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
target: [
'alpha-unknown-linux-gnu',
'x86_64-unknown-linux-gnu',
'i386-unknown-linux-gnu',
'arm-unknown-linux-gnueabi',
'arm-unknown-linux-gnueabihf',
'hppa-unknown-linux-gnu',
'aarch64-unknown-linux-gnu',
'mips-unknown-linux-gnu',
'mipsel-unknown-linux-gnu',
'powerpc-unknown-linux-gnu',
's390-unknown-linux-gnu',
's390x-unknown-linux-gnu',
'sparc-unknown-linux-gnu',
'powerpc64le-unknown-linux-gnu'
]
steps:
- uses: actions/checkout@main
with:
submodules: true
- name: Download artifact
uses: actions/download-artifact@main
with:
name: native-toolchain
- name: Setup toolchain
run: |
tar --directory='/tmp' --extract --file='./x86_64-linux-gnu.tar.xz'
mv '/tmp/nul' '/tmp/nul-toolchain'
- name: Build Nul with OBGGCC
run: |
source './tools/setup_toolchain.sh'
source './submodules/obggcc/tools/setup_toolchain.sh'
bash './build.sh' '${{ matrix.target }}'
- name: Generate tarball
run: |
declare tarball_filename='/tmp/${{ matrix.target }}.tar.xz'
tar --directory='/tmp' --create --file=- 'nul' | xz --threads='0' --compress -9 > "${tarball_filename}"
sha256sum "${tarball_filename}" | sed 's|/tmp/||' > "${tarball_filename}.sha256"
- name: Upload artifact
uses: actions/upload-artifact@main
with:
name: cross-toolchain
if-no-files-found: error
path: |
/tmp/${{ matrix.target }}.tar.xz
/tmp/${{ matrix.target }}.tar.xz.sha256
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "submodules/obggcc"]
path = submodules/obggcc
url = https://github.com/AmanoTeam/obggcc
Loading

0 comments on commit 08a5f85

Please sign in to comment.