ci: Add CI workflow
This commit is contained in:
parent
2290939be2
commit
00e14ab055
1 changed files with 34 additions and 0 deletions
34
.github/workflows/create-release.yaml
vendored
Normal file
34
.github/workflows/create-release.yaml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
name: Build and release
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
build-and-release:
|
||||
name: Build and release
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3.5.2
|
||||
|
||||
- name: Setup Docker
|
||||
uses: docker/setup-buildx-action@2.5.0
|
||||
|
||||
- name: Build toolchain
|
||||
uses: docker/build-push-action@4.0.0
|
||||
with:
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
context: ./toolchain/
|
||||
load: true
|
||||
tags: rg35xx-toolchain-new:latest
|
||||
|
||||
- name: Build project
|
||||
uses: addnab/docker-run-action@v3.0.0
|
||||
with:
|
||||
image: rg35xx-toolchain-new:latest
|
||||
options: -v ${{github.workspace}}:/root/workspace
|
||||
run: make all
|
||||
|
||||
- name: Create release
|
||||
run: |
|
||||
ls -a ./releases/
|
||||
echo "TODO"
|
||||
Loading…
Add table
Add a link
Reference in a new issue