This commit is contained in:
techknowlogick 2023-04-14 23:47:04 -04:00
parent fb7649f0d2
commit 641b400866
7 changed files with 9 additions and 14 deletions

View File

@ -8,26 +8,21 @@ jobs:
check-and-test:
strategy:
matrix:
os: [ubuntu-latest, arm-ubuntu-latest]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: setup ruby
if: matrix.os == 'arm-ubuntu-latest'
run: |
apt update -y
apt install gpgv2 ruby-full -y
- name: install tools
run: |
apt update -y
apt install -y build-essential procps curl file git
apt install -y build-essential procps curl file git gcc-12
- name: install homebrew
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: test tap
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install --debug gcc
brew tap gitea/gitea "$PWD"
brew install gitea/gitea/tea
tea --version

View File

@ -17,7 +17,7 @@ for bin in ${binaries};do
latest=$(curl -sL -o /dev/null -w %{url_effective} "${git_url}/releases/latest")
version="${latest##*/v}"
file_url="https://dl.gitea.io/${bin}/${version}"
file_url="https://dl.gitea.com/${bin}/${version}"
for os in ${supported_os}; do
sha256_file="${bin}-${version}-${os}"
if [ "$os" != "linux-386" -a "$os" != "linux-arm64" ]; then

View File

@ -15,7 +15,7 @@ class Changelog < Formula
end
@@filename = "changelog-#{version}-#{os}-#{arch}"
@@url = "https://dl.gitea.io/changelog-tool/#{version}/#{@@filename}"
@@url = "https://dl.gitea.com/changelog-tool/#{version}/#{@@filename}"
@@using = :nounzip
if os == "darwin-10.12" || arch == "amd64"

View File

@ -15,7 +15,7 @@ class GiteaHead < Formula
end
@@filename = "gitea-#{version}-#{os}-#{arch}"
@@url = "https://dl.gitea.io/gitea/#{version}/#{@@filename}"
@@url = "https://dl.gitea.com/gitea/#{version}/#{@@filename}"
@@using = :nounzip
if os == "darwin-10.12" || arch == "amd64"

View File

@ -15,7 +15,7 @@ class Gitea < Formula
end
@@filename = "gitea-#{version}-#{os}-#{arch}"
@@url = "https://dl.gitea.io/gitea/#{version}/#{@@filename}"
@@url = "https://dl.gitea.com/gitea/#{version}/#{@@filename}"
@@using = :nounzip
if os == "darwin-10.12" || arch == "amd64"

View File

@ -15,7 +15,7 @@ class TeaHead < Formula
end
@@filename = "tea-#{version}-#{os}-#{arch}"
@@url = "https://dl.gitea.io/tea/#{version}/#{@@filename}"
@@url = "https://dl.gitea.com/tea/#{version}/#{@@filename}"
@@using = :nounzip
if os == "darwin" || arch == "amd64"

2
tea.rb
View File

@ -15,7 +15,7 @@ class Tea < Formula
end
@@filename = "tea-#{version}-#{os}-#{arch}"
@@url = "https://dl.gitea.io/tea/#{version}/#{@@filename}"
@@url = "https://dl.gitea.com/tea/#{version}/#{@@filename}"
@@using = :nounzip
if os == "darwin" || arch == "amd64"