mirror of
https://github.com/threeal/cmake-action.git
synced 2025-06-09 10:41:22 +00:00
34 lines
707 B
YAML
34 lines
707 B
YAML
name: test
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
jobs:
|
|
use-action:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3.3.0
|
|
|
|
- name: Move test project to the working directory
|
|
run: mv test/* .
|
|
|
|
- name: Use this action
|
|
uses: ./
|
|
|
|
- name: Run build result
|
|
run: ./build/hello_world
|
|
|
|
use-action-with-specified-source-dir:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3.3.0
|
|
|
|
- name: Use this action with specified source directory
|
|
uses: ./
|
|
with:
|
|
source-dir: test
|
|
|
|
- name: Run build result
|
|
run: ./build/hello_world
|