mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +01:00
parent
4b87d0f783
commit
e9a4d99f6a
6
.github/workflows/sourcehutbuild.go
vendored
6
.github/workflows/sourcehutbuild.go
vendored
@ -26,10 +26,12 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
flagCommit = flag.String("commit", "", "git commit hash ID")
|
||||||
flagManifest = flag.String("manifest", "", "manifest file path")
|
flagManifest = flag.String("manifest", "", "manifest file path")
|
||||||
flagNote = flag.String("note", "", "note for the build")
|
flagNote = flag.String("note", "", "note for the build")
|
||||||
)
|
)
|
||||||
@ -101,8 +103,10 @@ func run() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
manifestStr := strings.ReplaceAll(string(manifest), "{{.Commit}}", *flagCommit)
|
||||||
|
|
||||||
body, err := httpRequest(http.MethodPost, "/api/jobs", &JobRequest{
|
body, err := httpRequest(http.MethodPost, "/api/jobs", &JobRequest{
|
||||||
Manifest: string(manifest),
|
Manifest: manifestStr,
|
||||||
Note: *flagNote,
|
Note: *flagNote,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
1
.github/workflows/sourcehutbuild.yml
vendored
1
.github/workflows/sourcehutbuild.yml
vendored
@ -26,5 +26,6 @@ jobs:
|
|||||||
- name: Run
|
- name: Run
|
||||||
run: |
|
run: |
|
||||||
go run .github/workflows/sourcehutbuild.go \
|
go run .github/workflows/sourcehutbuild.go \
|
||||||
|
-commit ${{ github.event.head_commit.id }} \
|
||||||
-manifest .github/workflows/sourcehutmanifests/${{ matrix.os }}.yml \
|
-manifest .github/workflows/sourcehutmanifests/${{ matrix.os }}.yml \
|
||||||
-note '${{ format('{0} ({1})', github.event.head_commit.id, matrix.os) }}'
|
-note '${{ format('{0} ({1})', github.event.head_commit.id, matrix.os) }}'
|
||||||
|
@ -10,7 +10,7 @@ packages:
|
|||||||
- pkgconf
|
- pkgconf
|
||||||
- go
|
- go
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/hajimehoshi/ebiten
|
- https://github.com/hajimehoshi/ebiten#{{.Commit}}
|
||||||
tasks:
|
tasks:
|
||||||
- build: |
|
- build: |
|
||||||
cd ebiten
|
cd ebiten
|
||||||
|
@ -9,7 +9,7 @@ packages:
|
|||||||
- pkg-config
|
- pkg-config
|
||||||
- go
|
- go
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/hajimehoshi/ebiten
|
- https://github.com/hajimehoshi/ebiten#{{.Commit}}
|
||||||
tasks:
|
tasks:
|
||||||
- build: |
|
- build: |
|
||||||
cd ebiten
|
cd ebiten
|
||||||
|
@ -12,7 +12,7 @@ packages:
|
|||||||
- pkg-config
|
- pkg-config
|
||||||
- golang
|
- golang
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/hajimehoshi/ebiten
|
- https://github.com/hajimehoshi/ebiten#{{.Commit}}
|
||||||
tasks:
|
tasks:
|
||||||
- build: |
|
- build: |
|
||||||
cd ebiten
|
cd ebiten
|
||||||
|
@ -11,7 +11,7 @@ packages:
|
|||||||
- pkg-config
|
- pkg-config
|
||||||
- go
|
- go
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/hajimehoshi/ebiten
|
- https://github.com/hajimehoshi/ebiten#{{.Commit}}
|
||||||
tasks:
|
tasks:
|
||||||
- build: |
|
- build: |
|
||||||
cd ebiten
|
cd ebiten
|
||||||
|
@ -12,7 +12,7 @@ packages:
|
|||||||
- pkg-config
|
- pkg-config
|
||||||
- golang
|
- golang
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/hajimehoshi/ebiten
|
- https://github.com/hajimehoshi/ebiten#{{.Commit}}
|
||||||
tasks:
|
tasks:
|
||||||
- build: |
|
- build: |
|
||||||
cd ebiten
|
cd ebiten
|
||||||
|
Loading…
Reference in New Issue
Block a user