Skip to content

Commit 56ff6d0

Browse files
authored
ci: build vfox from source (#11)
* ci: try build vfox from source * ci: try build vfox in ubuntu * ci: fix vfox link * ci: build vfox from source
1 parent 92e0c92 commit 56ff6d0

4 files changed

Lines changed: 41 additions & 19 deletions

File tree

.github/workflows/e2e_test_darwin.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,17 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121

22-
- name: install vfox (MacOS)
23-
if: runner.os == 'MacOS'
22+
- uses: actions/setup-go@v5
23+
with:
24+
go-version: '^1.24.2' # The Go version to download (if necessary) and use.
25+
26+
- name: build vfox (MacOS)
2427
run: |
25-
brew tap version-fox/tap
26-
brew install vfox@0.6.4
28+
git clone https://github.com/version-fox/vfox.git
29+
cd vfox
30+
go build -o vfox
31+
chmod +x vfox
32+
cp vfox /usr/local/bin
2733
2834
- name: add vfox-erlang plugin (Unix-like)
2935
run: |

.github/workflows/e2e_test_linux.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,17 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121

22-
- name: install vfox (Linux)
22+
- uses: actions/setup-go@v5
23+
with:
24+
go-version: '^1.24.2' # The Go version to download (if necessary) and use.
25+
26+
- name: build vfox (Linux)
2327
run: |
24-
echo "deb [trusted=yes] https://apt.fury.io/versionfox/ /" | sudo tee /etc/apt/sources.list.d/versionfox.list
25-
sudo apt-get update
26-
sudo apt-get install vfox=0.6.4
28+
git clone https://github.com/version-fox/vfox.git
29+
cd vfox
30+
go build -o vfox
31+
chmod +x vfox
32+
cp vfox /usr/local/bin
2733
2834
- name: add vfox-erlang plugin (Unix-like)
2935
run: |

.github/workflows/e2e_test_linux_prebuilt.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: E2E tests on Linux (Prebuilt release)
22

33
on:
44
push:
5-
branches: [main]
5+
# branches: [main]
66
pull_request:
77
workflow_dispatch:
88
schedule:
@@ -19,14 +19,21 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121

22-
- name: install vfox (Linux)
22+
- uses: actions/setup-go@v5
23+
with:
24+
go-version: '^1.24.2' # The Go version to download (if necessary) and use.
25+
26+
- name: build vfox (Linux)
2327
run: |
24-
echo "deb [trusted=yes] https://apt.fury.io/versionfox/ /" | sudo tee /etc/apt/sources.list.d/versionfox.list
25-
sudo apt-get update
26-
sudo apt-get install vfox=0.6.4
28+
git clone https://github.com/version-fox/vfox.git
29+
cd vfox
30+
go build -o vfox
31+
chmod +x vfox
32+
cp vfox /usr/local/bin
2733
2834
- name: add vfox-erlang plugin (Unix-like)
2935
run: |
36+
vfox -version
3037
vfox add --source https://github.com/version-fox/vfox-erlang/archive/${GITHUB_REF}.zip erlang
3138
3239
- name: prepare Erlang/OTP deps (Linux)

.github/workflows/e2e_test_windows.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,17 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121

22-
- name: install scoop (Windows)
23-
if: runner.os == 'Windows'
24-
uses: MinoruSekine/setup-scoop@v3
22+
- uses: actions/setup-go@v5
23+
with:
24+
go-version: '^1.24.2' # The Go version to download (if necessary) and use.
2525

26-
- name: install vfox (Windows)
27-
if: runner.os == 'Windows'
26+
- name: build vfox (Windows)
2827
run: |
29-
scoop install vfox@0.6.4
28+
git clone https://github.com/version-fox/vfox.git
29+
cd vfox
30+
go build -o vfox.exe
31+
echo "$pwd" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
32+
./vfox.exe -version
3033
3134
- name: add vfox-erlang plugin (Windows)
3235
if: runner.os == 'Windows'

0 commit comments

Comments
 (0)