Skip to content

Commit bae3e01

Browse files
committed
fixing workflows
1 parent af2ad69 commit bae3e01

File tree

4 files changed

+91
-3
lines changed

4 files changed

+91
-3
lines changed

.github/workflows/awesome_workflow.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
- uses: actions/setup-python@v2
1616
- name: requirements
1717
run: |
18-
sudo apt -qq -y update
19-
sudo apt -qq install clang-tidy-10 clang-format-10
18+
sudo apt-get -qq update
19+
sudo apt-get -qq install clang-tidy clang-format
2020
- name: Setup Git Specs
2121
run: |
2222
git config --global user.name github-actions

.github/workflows/codeql_analysis.yml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
2+
# For most projects, this workflow file will not need changing; you simply need
3+
# to commit it to your repository.
4+
#
5+
# You may wish to alter this file to override the set of languages analyzed,
6+
# or to provide custom queries or build logic.
7+
#
8+
# ******** NOTE ********
9+
# We have attempted to detect the languages in your repository. Please check
10+
# the `language` matrix defined below to confirm you have the correct set of
11+
# supported CodeQL languages.
12+
#
13+
name: "CodeQL"
14+
15+
on:
16+
push:
17+
branches: [ "master" ]
18+
pull_request:
19+
# The branches below must be a subset of the branches above
20+
branches: [ "master" ]
21+
22+
jobs:
23+
analyze:
24+
name: Analyze
25+
runs-on: ubuntu-latest
26+
permissions:
27+
actions: read
28+
contents: read
29+
security-events: write
30+
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
language: [ 'cpp' ]
35+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
36+
# Use only 'java' to analyze code written in Java, Kotlin or both
37+
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
38+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
39+
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v3
43+
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v2
47+
with:
48+
languages: ${{ matrix.language }}
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
53+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
54+
# queries: security-extended,security-and-quality
55+
56+
57+
58+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
59+
# If this step fails, then you should remove it and run the build manually (see below)
60+
- name: Autobuild
61+
uses: github/codeql-action/autobuild@v2
62+
63+
# ℹ️ Command-line programs to run using the OS shell.
64+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
65+
66+
# If the Autobuild fails above, remove it and uncomment the following three lines.
67+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
68+
69+
# - run: |
70+
# echo "Run, Build Application using script"
71+
# ./location_of_script_within_repo/buildscript.sh
72+
73+
- name: Perform CodeQL Analysis
74+
uses: github/codeql-action/analyze@v2
75+
with:
76+
category: "/language:${{matrix.language}}"

.github/workflows/gh-pages.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
build:
99
runs-on: macos-latest
1010
steps:
11-
- uses: actions/checkout@master
11+
- uses: actions/checkout@v3
1212
with:
1313
submodules: true
1414
- name: Install requirements

DIRECTORY.md

+12
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* [Binary To Hexadecimal](https://github.com/TheAlgorithms/C/blob/HEAD/conversions/binary_to_hexadecimal.c)
2020
* [Binary To Octal](https://github.com/TheAlgorithms/C/blob/HEAD/conversions/binary_to_octal.c)
2121
* [C Atoi Str To Integer](https://github.com/TheAlgorithms/C/blob/HEAD/conversions/c_atoi_str_to_integer.c)
22+
* [Celsius To Fahrenheit](https://github.com/TheAlgorithms/C/blob/HEAD/conversions/celsius_to_fahrenheit.c)
2223
* [Decimal To Any Base](https://github.com/TheAlgorithms/C/blob/HEAD/conversions/decimal_to_any_base.c)
2324
* [Decimal To Binary](https://github.com/TheAlgorithms/C/blob/HEAD/conversions/decimal_to_binary.c)
2425
* [Decimal To Binary Recursion](https://github.com/TheAlgorithms/C/blob/HEAD/conversions/decimal_to_binary_recursion.c)
@@ -33,6 +34,7 @@
3334
* [Octal To Binary](https://github.com/TheAlgorithms/C/blob/HEAD/conversions/octal_to_binary.c)
3435
* [Octal To Decimal](https://github.com/TheAlgorithms/C/blob/HEAD/conversions/octal_to_decimal.c)
3536
* [Octal To Hexadecimal](https://github.com/TheAlgorithms/C/blob/HEAD/conversions/octal_to_hexadecimal.c)
37+
* [Roman Numerals To Decimal](https://github.com/TheAlgorithms/C/blob/HEAD/conversions/roman_numerals_to_decimal.c)
3638
* [To Decimal](https://github.com/TheAlgorithms/C/blob/HEAD/conversions/to_decimal.c)
3739

3840
## Data Structures
@@ -190,15 +192,19 @@
190192
* [1524](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/1524.c)
191193
* [153](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/153.c)
192194
* [160](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/160.c)
195+
* [1653](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/1653.c)
193196
* [169](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/169.c)
197+
* [1695](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/1695.c)
194198
* [173](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/173.c)
195199
* [1752](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/1752.c)
200+
* [1769](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/1769.c)
196201
* [189](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/189.c)
197202
* [190](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/190.c)
198203
* [191](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/191.c)
199204
* [2](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/2.c)
200205
* [20](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/20.c)
201206
* [201](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/201.c)
207+
* [2024](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/2024.c)
202208
* [203](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/203.c)
203209
* [206](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/206.c)
204210
* [21](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/21.c)
@@ -207,6 +213,7 @@
207213
* [217](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/217.c)
208214
* [223](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/223.c)
209215
* [226](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/226.c)
216+
* [2304](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/2304.c)
210217
* [231](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/231.c)
211218
* [234](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/234.c)
212219
* [24](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/24.c)
@@ -228,6 +235,7 @@
228235
* [389](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/389.c)
229236
* [4](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/4.c)
230237
* [404](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/404.c)
238+
* [42](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/42.c)
231239
* [442](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/442.c)
232240
* [461](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/461.c)
233241
* [476](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/476.c)
@@ -242,6 +250,7 @@
242250
* [63](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/63.c)
243251
* [647](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/647.c)
244252
* [66](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/66.c)
253+
* [669](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/669.c)
245254
* [674](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/674.c)
246255
* [7](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/7.c)
247256
* [700](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/700.c)
@@ -255,12 +264,15 @@
255264
* [852](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/852.c)
256265
* [876](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/876.c)
257266
* [9](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/9.c)
267+
* [901](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/901.c)
258268
* [905](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/905.c)
259269
* [917](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/917.c)
260270
* [938](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/938.c)
261271
* [94](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/94.c)
262272
* [965](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/965.c)
263273
* [977](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/977.c)
274+
* [98](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/98.c)
275+
* [985](https://github.com/TheAlgorithms/C/blob/HEAD/leetcode/src/985.c)
264276

265277
## Machine Learning
266278
* [Adaline Learning](https://github.com/TheAlgorithms/C/blob/HEAD/machine_learning/adaline_learning.c)

0 commit comments

Comments
 (0)