Radix Sort in python (#971) #1412
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
name: CI | |
on: | |
push: | |
branches: [ cutover, master ] | |
paths-ignore: | |
- 'README.md' | |
pull_request: | |
branches: [ master ] | |
paths-ignore: | |
- 'README.md' | |
jobs: | |
safety-checkers: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Safety checking process | |
env: | |
DEBUG: ${{ secrets.DEBUG }} | |
HASHES: ${{ secrets.HASHES }} | |
run: ./safety-checkers/validator.sh "$DEBUG" "$HASHES" | |
compile-java: | |
needs: [safety-checkers] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: compile all java classes | |
run: javac $(find ./algorithms ./data-structures -name *.java) | |
compile-c: | |
needs: [safety-checkers] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install g++ libraries | |
run: | | |
sudo dpkg --add-architecture i386 | |
sudo apt-get install -y g++-9 g++-9-multilib | |
echo "CC=gcc-9" >> $GITHUB_ENV | |
echo "CXX=g++-9" >> $GITHUB_ENV | |
- name: compile all c files | |
run: for i in $(find . -type f -iname *.c); do gcc $i -lm; done; | |
- name: compile all c++ files | |
run: for j in $(find . -type f -iname *.cpp); do g++ $j -lm; done; | |
compile-golang: | |
needs: [safety-checkers] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.13 | |
id: go | |
- name: compile all go files | |
run: | | |
f="$(find ./algorithms ./data-structures -name *.go)" | |
for file in $f | |
do | |
go run "${file}" | |
echo "${file}" | |
done | |
run-javascript: | |
needs: [safety-checkers] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '12' | |
- name: compile all javascript files | |
run: node $(find ./algorithms ./data-structures -name *.js) | |
run-python3: | |
needs: [safety-checkers] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.5 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.5 | |
- name: run all python3 files | |
run: python $(find ./algorithms ./data-structures ! -path "*/python2/*" -type f -name "*.py") | |
run-python2: | |
needs: [safety-checkers] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 2.7 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 2.7 | |
- name: run all python2 files | |
run: python $(find ./algorithms ./data-structures ! -path "*/python3/*" -type f -name "*.py") | |
run-typescript: | |
needs: [safety-checkers] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '12' | |
- name: install typescript | |
run: npm install -g typescript | |
- name: run all typescript files | |
run: for i in $(find . -type f -iname *.ts); do tsc $i; done; | |
run-csharp: | |
needs: [safety-checkers] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '3.1.x' # SDK Version to use; x will use the latest version of the 3.1 channel | |
- name: run all csharp files | |
run: | | |
f="$(find ./algorithms ./data-structures -name *.cs)" | |
for file in $f | |
do | |
csc "${file}" | |
echo "${file}" | |
done |