Skip to content

Commit

Permalink
update .yml files to use ubuntu-20.04 instead of ubuntu-latest, s…
Browse files Browse the repository at this point in the history
…o that the produced executables will be compatible with more Linux distros
  • Loading branch information
spytheman committed Jan 8, 2024
1 parent 17bfa7f commit 4a1c32b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/analyzer_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
include:
- os: macos-latest
cc: -cc clang
- os: ubuntu-latest
- os: ubuntu-20.04
cc: -cc gcc
- os: windows-latest
cc: -cc gcc
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-20.04, macos-latest, windows-latest]
name: [ Debug, Dev, Release ]
include:
- name: Debug
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/install_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-20.04, macos-latest, windows-latest]
fail-fast: false

name: Install v-analyzer on ${{ matrix.os }}
Expand All @@ -26,11 +26,11 @@ jobs:

- name: Install via webscript (Windows)
if: runner.os == 'Windows'
run: curl -o install.vsh https://raw.githubusercontent.com/v-analyzer/v-analyzer/main/install.vsh; v run install.vsh; del install.vsh
run: curl -o install.vsh https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh; v run install.vsh; del install.vsh

- name: Install via webscript (nix)
if: runner.os != 'Windows'
run: v -e "$(curl https://raw.githubusercontent.com/v-analyzer/v-analyzer/main/install.vsh -fsSL)"
run: v -e "$(curl https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh -fsSL)"

- name: Check build success
run: ~/.config/v-analyzer/bin/v-analyzer --version
2 changes: 1 addition & 1 deletion .github/workflows/nightly_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- os: windows-latest
target: windows-x86_64
bin_ext: .exe
- os: ubuntu-latest
- os: ubuntu-20.04
target: linux-x86_64
- os: macos-latest
target: darwin-x86_64
Expand Down
2 changes: 1 addition & 1 deletion cmd/v-analyzer/up.v
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import cli
import term
import utils

pub const analyzer_install_script_download_path = 'https://raw.githubusercontent.com/v-analyzer/v-analyzer/main/install.vsh'
pub const analyzer_install_script_download_path = 'https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh'
pub const analyzer_install_script_path = utils.expand_tilde_to_home('~/.config/v-analyzer/install.vsh')

fn up_cmd(cmd cli.Command) ! {
Expand Down

0 comments on commit 4a1c32b

Please sign in to comment.