Skip to content

Commit

Permalink
update go; futureproof language
Browse files Browse the repository at this point in the history
  • Loading branch information
mcandre committed Nov 9, 2024
1 parent bc9ad35 commit 80f58bb
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 36 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@ on: # yamllint disable-line rule:truthy
jobs:
Audit:
runs-on: "ubuntu-24.04"
env:
GOPATH: "/home/runner/go"
steps:
- run: "echo \"/usr/local/go/bin\" >> \"$GITHUB_PATH\""
- run: "echo \"${GOPATH}/bin\" >> \"$GITHUB_PATH\""
- uses: actions/setup-go@v5
with:
go-version: '1.23.3'
- uses: "actions/checkout@v4"
- run: "sudo apt-get update"
- run: "sudo apt-get install -y cargo curl"
- run: "curl -LO https://go.dev/dl/go1.23.2.linux-amd64.tar.gz"
- run: "sudo tar -C /usr/local -xzf go1.23.2.linux-amd64.tar.gz"
- run: "curl -LO https://downloads.snyk.io/cli/stable/snyk-linux"
- run: "sudo cp snyk-linux /bin/snyk"
- run: "sudo chmod a+x /bin/snyk"
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ on: # yamllint disable-line rule:truthy
jobs:
Lint:
runs-on: "ubuntu-24.04"
env:
GOPATH: "/home/runner/go"
steps:
- run: "echo \"/usr/local/go/bin\" >> \"$GITHUB_PATH\""
- run: "echo \"${GOPATH}/bin\" >> \"$GITHUB_PATH\""
- uses: actions/setup-go@v5
with:
go-version: '1.23.3'
- uses: "actions/checkout@v4"
- run: "sudo apt-get update"
- run: "sudo apt-get install -y cargo curl"
- run: "curl -LO https://go.dev/dl/go1.23.2.linux-amd64.tar.gz"
- run: "sudo tar -C /usr/local -xzf go1.23.2.linux-amd64.tar.gz"
- run: "sudo apt-get install -y cargo"
- run: "make -j 4"
- run: "mage lint"
11 changes: 4 additions & 7 deletions .github/workflows/test-crosscompile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ on: # yamllint disable-line rule:truthy
jobs:
Test-Crosscompile:
runs-on: "ubuntu-24.04"
env:
GOPATH: "/home/runner/go"
steps:
- run: "echo \"/usr/local/go/bin\" >> \"$GITHUB_PATH\""
- run: "echo \"${GOPATH}/bin\" >> \"$GITHUB_PATH\""
- uses: actions/setup-go@v5
with:
go-version: '1.23.3'
- uses: "actions/checkout@v4"
- run: "sudo apt-get update"
- run: "sudo apt-get install -y cargo curl"
- run: "curl -LO https://go.dev/dl/go1.23.2.linux-amd64.tar.gz"
- run: "sudo tar -C /usr/local -xzf go1.23.2.linux-amd64.tar.gz"
- run: "sudo apt-get install -y cargo"
- run: "make -j 4 go"
- run: "mage port"
24 changes: 24 additions & 0 deletions .github/workflows/test-futureproof-language.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: "Test-Futureproof-Language"
on: # yamllint disable-line rule:truthy
push:
pull_request:
# POSIX cron format
# https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html
schedule:
# Once every 5 minutes
# - cron: "*/5 * * * *"
# Once a day
- cron: "0 0 * * *"
jobs:
Test-Futureproof-Language:
runs-on: "ubuntu-24.04"
steps:
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- uses: "actions/checkout@v4"
- run: "sudo apt-get update"
- run: "sudo apt-get install -y cargo"
- run: "make -j 4 go"
- run: "mage test"
11 changes: 4 additions & 7 deletions .github/workflows/test-futureproof-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@ on: # yamllint disable-line rule:truthy
jobs:
Test-Futureproof-OS:
runs-on: "ubuntu-latest"
env:
GOPATH: "/home/runner/go"
steps:
- run: "echo \"/usr/local/go/bin\" >> \"$GITHUB_PATH\""
- run: "echo \"${GOPATH}/bin\" >> \"$GITHUB_PATH\""
- uses: actions/setup-go@v5
with:
go-version: '1.23.3'
- uses: "actions/checkout@v4"
- run: "sudo apt-get update"
- run: "sudo apt-get install -y cargo curl"
- run: "curl -LO https://go.dev/dl/go1.23.2.linux-amd64.tar.gz"
- run: "sudo tar -C /usr/local -xzf go1.23.2.linux-amd64.tar.gz"
- run: "sudo apt-get install -y cargo"
- run: "make -j 4 go"
- run: "mage test"
11 changes: 4 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ on: # yamllint disable-line rule:truthy
jobs:
Test:
runs-on: "ubuntu-24.04"
env:
GOPATH: "/home/runner/go"
steps:
- run: "echo \"/usr/local/go/bin\" >> \"$GITHUB_PATH\""
- run: "echo \"${GOPATH}/bin\" >> \"$GITHUB_PATH\""
- uses: actions/setup-go@v5
with:
go-version: '1.23.3'
- uses: "actions/checkout@v4"
- run: "sudo apt-get update"
- run: "sudo apt-get install -y cargo curl"
- run: "curl -LO https://go.dev/dl/go1.23.2.linux-amd64.tar.gz"
- run: "sudo tar -C /usr/local -xzf go1.23.2.linux-amd64.tar.gz"
- run: "sudo apt-get install -y cargo"
- run: "make -j 4 go"
- run: "mage test"
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
golang 1.23.2
golang 1.23.3
rust 1.75.0
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# BUILDTIME REQUIREMENTS

* GNU or BSD [findutils](https://en.wikipedia.org/wiki/Find_(Unix))
* [Go](https://go.dev/) 1.23.2+
* [Go](https://go.dev/) 1.23.3+
* [jq](https://jqlang.github.io/jq/)
* [GNU](https://www.gnu.org/software/make/) / [BSD](https://man.freebsd.org/cgi/man.cgi?make(1)) make
* [Rust](https://www.rust-lang.org/) 1.75.0+
Expand Down

0 comments on commit 80f58bb

Please sign in to comment.