mirror of
https://github.com/SpinalHDL/SpinalTemplateSbt.git
synced 2025-10-25 00:38:44 +08:00
Compare commits
1 Commits
b7bc7a5510
...
test-folde
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0340f9799c |
10
.github/Dockerfile
vendored
10
.github/Dockerfile
vendored
@@ -1,10 +0,0 @@
|
|||||||
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
43
.github/workflows/docker.yml
vendored
@@ -1,43 +0,0 @@
|
|||||||
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.10.9
|
0.9.8
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ ThisBuild / version := "1.0"
|
|||||||
ThisBuild / scalaVersion := "2.12.18"
|
ThisBuild / scalaVersion := "2.12.18"
|
||||||
ThisBuild / organization := "org.example"
|
ThisBuild / organization := "org.example"
|
||||||
|
|
||||||
val spinalVersion = "1.10.2a"
|
val spinalVersion = "1.9.4"
|
||||||
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)
|
||||||
@@ -10,6 +10,7 @@ val spinalIdslPlugin = compilerPlugin("com.github.spinalhdl" %% "spinalhdl-idsl-
|
|||||||
lazy val projectname = (project in file("."))
|
lazy val projectname = (project in file("."))
|
||||||
.settings(
|
.settings(
|
||||||
Compile / scalaSource := baseDirectory.value / "hw" / "spinal",
|
Compile / scalaSource := baseDirectory.value / "hw" / "spinal",
|
||||||
|
Test / scalaSource := baseDirectory.value / "test" / "spinal",
|
||||||
libraryDependencies ++= Seq(spinalCore, spinalLib, spinalIdslPlugin)
|
libraryDependencies ++= Seq(spinalCore, spinalLib, spinalIdslPlugin)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
4
build.sc
4
build.sc
@@ -1,9 +1,9 @@
|
|||||||
import mill._, scalalib._
|
import mill._, scalalib._
|
||||||
|
|
||||||
val spinalVersion = "1.10.2a"
|
val spinalVersion = "1.9.0"
|
||||||
|
|
||||||
object projectname extends SbtModule {
|
object projectname extends SbtModule {
|
||||||
def scalaVersion = "2.12.18"
|
def scalaVersion = "2.12.16"
|
||||||
override def millSourcePath = os.pwd
|
override def millSourcePath = os.pwd
|
||||||
def sources = T.sources(
|
def sources = T.sources(
|
||||||
millSourcePath / "hw" / "spinal"
|
millSourcePath / "hw" / "spinal"
|
||||||
|
|||||||
Reference in New Issue
Block a user