-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a test github actions workflow
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This is for github actions testing, to be removed later | ||
on: | ||
push: | ||
paths: | ||
- '/**' | ||
pull_request: | ||
|
||
jobs: | ||
Build: | ||
runs-on: self-hosted | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
# We must fetch at least the immediate parents so that if this is | ||
# a pull request then we can checkout the head. | ||
fetch-depth: 2 | ||
- name: Install Dependencies | ||
shell: bash | ||
run: | | ||
export DEBIAN_FRONTEND=noninteractive | ||
sudo apt-get -y update && sudo apt-get -y install libtool cmake automake autoconf make curl unzip jq | ||
mkdir -p test/bin | ||
echo -e '#!/bin/bash\necho "Command was executed successfully"\n' > test/bin/testcmd | ||
chmod +x test/bin/testcmd | ||
export PATH=test/bin:$PATH | ||
echo "Step - Deps: jq is installed at $(which jq)" | ||
- name: Build | ||
run: | | ||
echo "Step - Build: jq is installed at $(which jq)" | ||
echo "Build is successful" | ||
- name: Clean Artifacts | ||
run: | | ||
git clean -xdf |