mirror of
https://github.com/SpinalHDL/SpinalTemplateSbt.git
synced 2025-10-24 16:38:43 +08:00
Compare commits
5 Commits
0c7a13355f
...
e4d1bb23c1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e4d1bb23c1 | ||
|
|
f47ac2f65f | ||
|
|
aef775ddf1 | ||
|
|
a6773349ee | ||
|
|
9094b6ce2a |
10
.github/Dockerfile
vendored
Normal file
10
.github/Dockerfile
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
FROM ghcr.io/readon/spinalhdl:master
|
||||||
|
|
||||||
|
ARG JAVA_EXTRA_OPTS="-Xmx2g -Xms2g"
|
||||||
|
ENV JAVA_OPTS="${JAVA_OPTS} ${JAVA_EXTRA_OPTS}"
|
||||||
|
RUN git clone https://github.com/SpinalHDL/SpinalTemplateSbt.git && \
|
||||||
|
cd SpinalTemplateSbt && \
|
||||||
|
git submodule update --init --recursive && \
|
||||||
|
sbt compile && \
|
||||||
|
mill _.compile && \
|
||||||
|
cd .. && rm -rf SpinalTemplateSbt
|
||||||
43
.github/workflows/docker.yml
vendored
Normal file
43
.github/workflows/docker.yml
vendored
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
name: Build and Push Docker Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
env:
|
||||||
|
REGISTRY: ghcr.io
|
||||||
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out the repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Log in to the Container registry
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ${{ env.REGISTRY }}
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v4
|
||||||
|
with:
|
||||||
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: .github/Dockerfile
|
||||||
|
push: true
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
@@ -1 +1 @@
|
|||||||
0.9.8
|
0.10.9
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ ThisBuild / version := "1.0"
|
|||||||
ThisBuild / scalaVersion := "2.12.16"
|
ThisBuild / scalaVersion := "2.12.16"
|
||||||
ThisBuild / organization := "org.example"
|
ThisBuild / organization := "org.example"
|
||||||
|
|
||||||
val spinalVersion = "1.9.0"
|
val spinalVersion = "1.9.3"
|
||||||
val spinalCore = "com.github.spinalhdl" %% "spinalhdl-core" % spinalVersion
|
val spinalCore = "com.github.spinalhdl" %% "spinalhdl-core" % spinalVersion
|
||||||
val spinalLib = "com.github.spinalhdl" %% "spinalhdl-lib" % spinalVersion
|
val spinalLib = "com.github.spinalhdl" %% "spinalhdl-lib" % spinalVersion
|
||||||
val spinalIdslPlugin = compilerPlugin("com.github.spinalhdl" %% "spinalhdl-idsl-plugin" % spinalVersion)
|
val spinalIdslPlugin = compilerPlugin("com.github.spinalhdl" %% "spinalhdl-idsl-plugin" % spinalVersion)
|
||||||
|
|||||||
Reference in New Issue
Block a user