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