This commit is contained in:
28
.gitea/workflows/compile.yaml
Normal file
28
.gitea/workflows/compile.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Gitea Registry
|
||||
run: echo "${{ vars.OCI_ACCESS_TOKEN }}" | docker login git.drath.cc -u ${{ gitea.actor }} --password-stdin
|
||||
|
||||
- name: Install build deps
|
||||
run: apt update && apt upgrade && apt install gcc-riscv64-unknown-elf libnewlib-dev libudev-dev libusb-1.0-0-dev git build-essential
|
||||
|
||||
- name: Clone ch32fun repo
|
||||
run: git clone https://github.com/cnlohr/ch32fun.git $(HOME)/git/ch32fun/ch32fun
|
||||
|
||||
- name: Compile binary
|
||||
run: make build -j8
|
||||
|
||||
# - name: Push image
|
||||
# run: docker push git.drath.cc/${{ gitea.repository }}:latest
|
||||
Reference in New Issue
Block a user