Skip to content

Commit

Permalink
Add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sepen committed Dec 14, 2024
1 parent 3620951 commit 66c7f51
Showing 1 changed file with 124 additions and 0 deletions.
124 changes: 124 additions & 0 deletions .github/workflows/toolchain-3.7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
name: toolchain-3.7

on:
push:
branches:
- '3.7'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
name: Build 3.7 toolchain
runs-on: ubuntu-latest

steps:
- name: Clone repo
uses: actions/checkout@v4

- name: Download source files
run: |
make download
- name: Build linux-headers
uses: addnab/docker-run-action@v3
with:
image: sepen/crux:3.7
# Create a bind mount from the current workspace to /opt/arm-linux-gnueabihf
# github.workspace includes all of the code checked out from our current repo
# so anything done to this code will then be available to any following step
options: -v ${{ github.workspace }}:/opt/arm-linux-gnueabihf
run: |
make linux-headers -C /opt/arm-linux-gnueabihf
- name: Build libgmp
uses: addnab/docker-run-action@v3
with:
image: sepen/crux:3.7
options: -v ${{ github.workspace }}:/opt/arm-linux-gnueabihf
run: |
make libgmp -C /opt/arm-linux-gnueabihf
- name : Build libmpfr
uses: addnab/docker-run-action@v3
with:
image: sepen/crux:3.7
options: -v ${{ github.workspace }}:/opt/arm-linux-gnueabihf
run: |
make libmpfr -C /opt/arm-linux-gnueabihf
- name : Build libmpc
uses: addnab/docker-run-action@v3
with:
image: sepen/crux:3.7
options: -v ${{ github.workspace }}:/opt/arm-linux-gnueabihf
run: |
make libmpc -C /opt/arm-linux-gnueabihf
- name: Build binutils
uses: addnab/docker-run-action@v3
with:
image: sepen/crux:3.7
options: -v ${{ github.workspace }}:/opt/arm-linux-gnueabihf
run: |
make binutils -C /opt/arm-linux-gnueabihf
- name: Build gcc-static
uses: addnab/docker-run-action@v3
with:
image: sepen/crux:3.7
options: -v ${{ github.workspace }}:/opt/arm-linux-gnueabihf
run: |
make gcc-static -C /opt/arm-linux-gnueabihf
- name: Build make
uses: addnab/docker-run-action@v3
with:
image: sepen/crux:3.7
options: -v ${{ github.workspace }}:/opt/arm-linux-gnueabihf
run: |
make make -C /opt/arm-linux-gnueabihf
- name: Build glibc
uses: addnab/docker-run-action@v3
with:
image: sepen/crux:3.7
options: -v ${{ github.workspace }}:/opt/arm-linux-gnueabihf
run: |
make glibc -C /opt/arm-linux-gnueabihf
- name: Build gcc-final
uses: addnab/docker-run-action@v3
with:
image: sepen/crux:3.7
options: -v ${{ github.workspace }}:/opt/arm-linux-gnueabihf
run: |
make gcc-final -C /opt/arm-linux-gnueabihf
- name: Test toolchain
uses: addnab/docker-run-action@v3
with:
image: sepen/crux:3.7
options: -v ${{ github.workspace }}:/opt/arm-linux-gnueabihf
run: |
make test -C /opt/arm-linux-gnueabihf
- name: Release toolchain
uses: addnab/docker-run-action@v3
with:
image: sepen/crux:3.7
options: -v ${{ github.workspace }}:/opt/arm-linux-gnueabihf
run: |
mkdir /opt/arm-linux-gnueabihf/release
tar cvJf /opt/arm-linux-gnueabihf/release/crux-toolchain-arm-linux-gnueabihf-3.7-$(date +'%Y%m%d%H%M').tar.xz \
/opt/arm-linux-gnueabihf/cross-sysroot /opt/arm-linux-gnueabihf/cross-tools
- name: Upload toolchain
uses: burnett01/[email protected]
with:
switches: -avz
path: release/
remote_path: /home/frs/project/crux-arm/toolchain/
remote_host: frs.sourceforge.net
remote_user: sepen
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}

0 comments on commit 66c7f51

Please sign in to comment.