Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
leleliu008 committed Jul 30, 2024
1 parent 6c7ee39 commit 1130020
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 41 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,29 @@ on:

jobs:
test:
runs-on: macos-12
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
version: [13, 12]
freebsd-version: ['14.1', '14.0', '13.3', '13.2']

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
with:
path: ~/.vagrant.d/boxes
key: vagrant-generic-freebsd-${{ matrix.version }}
restore-keys: |
vagrant-generic-freebsd-${{ matrix.version }}
- uses: leleliu008/github-actions-vagrant@main
- uses: cross-platform-actions/[email protected]
with:
mem: 2048
box: generic/freebsd${{ matrix.version }}
operating_system: freebsd
version: ${{ matrix.freebsd-version }}
shell: bash
run: |
run pkg update
run pkg install -y curl libnghttp2 gcc
run() {
printf "\033[0;35m==>\033[0m \033[0;32m%b\n\033[0m" "$*"
eval "$@"
}
run sudo pkg update
run sudo pkg install -y curl libnghttp2 gcc
run ./ppkg --help
run ./ppkg --version
Expand Down
25 changes: 12 additions & 13 deletions .github/workflows/netbsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,27 @@ on:

jobs:
test:
runs-on: macos-12
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
version: [9]
netbsd-version: ['10.0', '9.4', '9.3', '9.2']

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
with:
path: ~/.vagrant.d/boxes
key: vagrant-generic-netbsd-${{ matrix.version }}
restore-keys: |
vagrant-generic-netbsd-${{ matrix.version }}
- uses: leleliu008/github-actions-vagrant@main
- uses: cross-platform-actions/[email protected]
with:
mem: 2048
box: generic/netbsd${{ matrix.version }}
operating_system: netbsd
version: ${{ matrix.netbsd-version }}
shell: bash
run: |
run() {
printf "\033[0;35m==>\033[0m \033[0;32m%b\n\033[0m" "$*"
eval "$@"
}
run sudo sed -i 's/#ETCCERTSDIR=/ETCCERTSDIR=/' /usr/pkg/etc/ca-certificates-dir.conf
run sudo update-ca-certificates
Expand Down
29 changes: 16 additions & 13 deletions .github/workflows/openbsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,27 @@ on:

jobs:
test:
runs-on: macos-12

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
openbsd-version: ['7.5', '7.4', '7.3', '7.2']

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
- uses: cross-platform-actions/[email protected]
with:
path: ~/.vagrant.d/boxes
key: vagrant-generic-openbsd-7
restore-keys: |
vagrant-generic-openbsd-7
- uses: leleliu008/github-actions-vagrant@main
with:
mem: 2048
box: generic/openbsd7
box-version: 4.2.16
operating_system: openbsd
version: ${{ matrix.openbsd-version }}
shell: bash
run: |
run() {
printf "\033[0;35m==>\033[0m \033[0;32m%b\n\033[0m" "$*"
eval "$@"
}
run sudo pkg_add curl gtar-- gcc%11
run sudo ln -s /usr/local/bin/gtar /usr/bin/tar
Expand Down

0 comments on commit 1130020

Please sign in to comment.