Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update actions/cache from v3 to v4 #3

Merged
merged 6 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ jobs:
strategy:
matrix:
box:
- generic/freebsd12
- generic/freebsd13
- generic/freebsd14
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Provision VM
uses: ./
Expand Down Expand Up @@ -65,20 +64,18 @@ jobs:

FreeBSD-On-macOS:
name: ${{ matrix.box }}
runs-on: macos-latest
runs-on: macos-13
strategy:
matrix:
box:
- freebsd/FreeBSD-12.4-STABLE
- freebsd/FreeBSD-13.2-STABLE
- freebsd/FreeBSD-14.0-STABLE
- generic/freebsd12
- freebsd/FreeBSD-13.3-STABLE
- freebsd/FreeBSD-14.1-STABLE
- generic/freebsd13
- generic/freebsd14
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Provision VM
uses: ./
Expand Down
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# FreeBSD Vagrant Action

**The value for [runs-on](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on) must either be set to `macos-latest` or `ubuntu-latest` in order to use this action.**
**The value for [runs-on](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on) must either be set to `macos-13` or `ubuntu-latest` in order to use this action.**

This action allows the running of command-line programs via the `bash` shell of FreeBSD VMs provisioned with Vagrant using the [run](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun) keyword. This also works with composite actions which exclusively use the `run` keyword (and/or call other composite actions which also do so.)

#### *This action is currently only tested with these boxes (but will probably also work with others):*
* `freebsd/FreeBSD-12.4-STABLE` (`macos-latest` only)
* `freebsd/FreeBSD-13.2-STABLE` (`macos-latest` only)
* `freebsd/FreeBSD-14.0-STABLE` (`macos-latest` only)
* `generic/freebsd12`
* `freebsd/FreeBSD-13.3-STABLE` (`macos-13` only)
* `freebsd/FreeBSD-14.1-STABLE` (`macos-13` only)
* `generic/freebsd13`
* `generic/freebsd14`

Expand All @@ -17,9 +15,9 @@ This action allows the running of command-line programs via the `bash` shell of
1. Provision a `FreeBSD VM` using the specified `box` (with 2 CPUs & 2GB of RAM)
```yaml
- name: Provision VM
uses: hummeltech/freebsd-vagrant-action@v1.4
uses: hummeltech/freebsd-vagrant-action@v1.5
with:
box: freebsd/FreeBSD-12.4-RELEASE
box: freebsd/FreeBSD-14.1-STABLE
cpus: 2
memory: 2048
```
Expand Down
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Allow running command-line programs via bash shell of FreeBSD VMs p

inputs:
box:
default: generic/freebsd13
default: generic/freebsd14
description: Vagrant Box
type: string
cpus:
Expand Down Expand Up @@ -83,16 +83,16 @@ runs:

- name: Install/Upgrade Vagrant (macOS)
run: |
brew upgrade --force --quiet vagrant
brew install --cask --force --quiet vagrant virtualbox
shell: bash
if: runner.os == 'macOS'

- name: Cache Vagrant Box
if: inputs.save_box_to_cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ inputs.vagrant_box_descriptor }}
key: ${{ inputs.box }}.box
key: ${{ inputs.box }}-${{ runner.os }}.box

- name: Add Vagrant Box
if: inputs.use_cached_box
Expand Down