Skip to content

build newlib with -O2 #33

build newlib with -O2

build newlib with -O2 #33

Workflow file for this run

name: Build
on:
push:
pull_request:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install deps
run: sudo apt update && sudo apt -y install gcc-arm-none-eabi libmpc-dev
- name: Build newlib
run: ./build-newlib
- name: Build libstdc++
run: ./build-libstdc++
- name: Package
if: github.event_name == 'release'
shell: bash
run: 7z a stdlibs.zip no-pic pic
- name: Upload
if: github.event_name == 'release'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
asset_path: ./stdlibs.zip
upload_url: ${{github.event.release.upload_url}}
asset_name: stdlibs.zip
asset_content_type: application/zip