Skip to content

Commit

Permalink
Merge pull request #54 from Shpota/support-older-platforms
Browse files Browse the repository at this point in the history
Support older platforms
  • Loading branch information
Shpota authored Mar 10, 2020
2 parents b5bbf22 + af3375b commit 0c91f97
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 8 deletions.
53 changes: 46 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,59 @@
name: build
on: [push]
on: [push, pull_request]
jobs:

build:
name: Build
test:
name: Test
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14
id: go

- name: Check out code into the Go module directory
- name: Check out
uses: actions/checkout@v2

- name: Test
run: go test -v ./...

build-1-13:
name: Build on Go 1.13
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Check out
uses: actions/checkout@v2
- name: Build
run: go build .

build-1-12:
name: Build on Go 1.12
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.12
uses: actions/setup-go@v1
with:
go-version: 1.12
id: go
- name: Check out
uses: actions/checkout@v2
- name: Build
run: go build .

build-1-11:
name: Build on Go 1.11
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.11
uses: actions/setup-go@v1
with:
go-version: 1.11
id: go
- name: Check out
uses: actions/checkout@v2
- name: Build
run: go build .
2 changes: 1 addition & 1 deletion codegen/codegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func Generate(projectName, frontend string) {
func (g generator) generate() {
fmt.Println("Generating", g.projectName)
for path, srcText := range static.Sources() {
srcText = strings.ReplaceAll(srcText, "project-name", g.projectName)
srcText = strings.Replace(srcText, "project-name", g.projectName, -1)
binary := []byte(srcText)
g.processFile(path, binary)
}
Expand Down

0 comments on commit 0c91f97

Please sign in to comment.