Bläddra i källkod

[CI] force color for earthly

Andy Li 3 år sedan
förälder
incheckning
6170976dae
3 ändrade filer med 14 tillägg och 1 borttagningar
  1. 2 0
      .github/workflows/main.yml
  2. 10 1
      Earthfile
  3. 2 0
      extra/github-actions/workflows/main.yml

+ 2 - 0
.github/workflows/main.yml

@@ -233,6 +233,7 @@ jobs:
     runs-on: ubuntu-18.04
     env:
       EARTHLY_PLATFORMS: linux/amd64
+      FORCE_COLOR: 1
     steps:
       - name: Login to GitHub Container Registry
         uses: docker/login-action@v1
@@ -281,6 +282,7 @@ jobs:
     runs-on: ubuntu-18.04
     env:
       EARTHLY_PLATFORMS: linux/arm64
+      FORCE_COLOR: 1
     steps:
       - name: Login to GitHub Container Registry
         uses: docker/login-action@v1

+ 10 - 1
Earthfile

@@ -147,7 +147,7 @@ try-neko:
 try-haxe:
     DO +INSTALL_NEKO
     DO +INSTALL_HAXE
-    RUN haxe -version
+    RUN haxe --version
     RUN haxelib version
 
 neko:
@@ -351,3 +351,12 @@ test-all:
     IF [ "$TARGETPLATFORM" = "linux/amd64" ]
         BUILD +test-hl # FIXME: hl can't compile on arm64 (JIT issue?)
     END
+
+github-actions:
+    DO +INSTALL_NEKO
+    DO +INSTALL_HAXE
+    RUN mkdir -p "$WORKDIR"/.github/workflows
+    COPY extra/github-actions extra/github-actions
+    WORKDIR extra/github-actions
+    RUN haxe build.hxml
+    SAVE ARTIFACT --keep-ts "$WORKDIR"/.github/workflows AS LOCAL .github/workflows

+ 2 - 0
extra/github-actions/workflows/main.yml

@@ -56,6 +56,7 @@ jobs:
     runs-on: ubuntu-18.04
     env:
       EARTHLY_PLATFORMS: linux/amd64
+      FORCE_COLOR: 1
     steps:
       - name: Login to GitHub Container Registry
         uses: docker/login-action@v1
@@ -104,6 +105,7 @@ jobs:
     runs-on: ubuntu-18.04
     env:
       EARTHLY_PLATFORMS: linux/arm64
+      FORCE_COLOR: 1
     steps:
       - name: Login to GitHub Container Registry
         uses: docker/login-action@v1