ci: Package action automatically on release branch (#15)

This commit is contained in:
Samuel Ryan 2022-12-02 16:37:11 +00:00 committed by GitHub
parent abde1147dd
commit 917745b929
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 161 additions and 1623 deletions

View file

@ -3,11 +3,20 @@ name: Test Cross Platform Support
on: [push]
jobs:
action:
uses: ./.github/workflows/build_action.yaml
linux:
runs-on: ubuntu-latest
needs:
- action
name: Extract Example File on Ubuntu
steps:
- uses: actions/checkout@v2
- name: Load action build from cache
uses: actions/cache@v3
with:
path: dist
key: build-${{ github.sha }}
- run: docker build -t example:${{ github.sha }} ./.github/tests
- uses: ./
id: extract
@ -17,9 +26,16 @@ jobs:
- run: test -e ${{ steps.extract.outputs.destination }}/001.txt || exit 1
macos:
runs-on: macos-latest
needs:
- action
name: Extract Example File on macOS
steps:
- uses: actions/checkout@v2
- name: Load action build from cache
uses: actions/cache@v3
with:
path: dist
key: build-${{ github.sha }}
- name: Install Docker
env:
HOMEBREW_GITHUB_API_TOKEN: "${{ github.token }}"