From 80f58bb6561a1f03ae10070f1506cc05472e07e6 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 8 Nov 2024 20:24:41 -0600 Subject: [PATCH] update go; futureproof language --- .github/workflows/audit.yml | 9 +++---- .github/workflows/lint.yml | 11 ++++----- .github/workflows/test-crosscompile.yml | 11 ++++----- .../workflows/test-futureproof-language.yml | 24 +++++++++++++++++++ .github/workflows/test-futureproof-os.yml | 11 ++++----- .github/workflows/test.yml | 11 ++++----- .tool-versions | 2 +- DEVELOPMENT.md | 2 +- 8 files changed, 45 insertions(+), 36 deletions(-) create mode 100644 .github/workflows/test-futureproof-language.yml diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 2d2b63a..f6e93bf 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -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" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 778ec9f..3707ba1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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" diff --git a/.github/workflows/test-crosscompile.yml b/.github/workflows/test-crosscompile.yml index 2eb7920..84f416e 100644 --- a/.github/workflows/test-crosscompile.yml +++ b/.github/workflows/test-crosscompile.yml @@ -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" diff --git a/.github/workflows/test-futureproof-language.yml b/.github/workflows/test-futureproof-language.yml new file mode 100644 index 0000000..6b1cf01 --- /dev/null +++ b/.github/workflows/test-futureproof-language.yml @@ -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" diff --git a/.github/workflows/test-futureproof-os.yml b/.github/workflows/test-futureproof-os.yml index f212f29..e84fdd3 100644 --- a/.github/workflows/test-futureproof-os.yml +++ b/.github/workflows/test-futureproof-os.yml @@ -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" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b67ec29..33645e6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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" diff --git a/.tool-versions b/.tool-versions index 766e4b5..32538fb 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -golang 1.23.2 +golang 1.23.3 rust 1.75.0 diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 4b3981d..ae99168 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -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+