This repository was archived by the owner on Mar 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
113 lines (102 loc) · 4.09 KB
/
main.yml
File metadata and controls
113 lines (102 loc) · 4.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Build the compiler
on: [push, pull_request]
jobs:
build-on-linux:
runs-on: ubuntu-latest
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v2
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ github.workspace }}
# [START] Set up the environment for Linux
- name: Update the packages list
run: sudo apt update
- name: Install the build-essential package
run: sudo apt install build-essential
- name: Install the manpages-dev package
run: sudo apt-get install manpages-dev
- name: Install the mingw-w64 package
run: sudo apt-get install mingw-w64
- name: Test the GCC command
run: gcc --version
- name: Test the i686-w64-mingw32-gcc command
run: i686-w64-mingw32-gcc --version
- name: Test the x86_64-w64-mingw32-gcc command
run: x86_64-w64-mingw32-gcc --version
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: cpp
# [END] Set up the environment for Linux
# [START] Delete the executables
- name: Clear the binaries
run: make clean
# [END] Delete the executables
- name: List the project files
run: ls ${{ github.workspace }}/
- name: Build the compiler
run: make run-all
- name: List the project files
run: ls ${{ github.workspace }}/
# [START] Scan code
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
# [END] Scan code
- run: echo "This job's status is ${{ job.status }}."
build-on-macos:
runs-on: macos-latest
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v2
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ github.workspace }}
# [START] Set up the environment for macOS
- run: export HOMEBREW_NO_ANALYTICS=1
- name: Update the packages list
run: brew update
- name: Upgrade the packages
run: brew upgrade
- name: Install the GCC package
run: brew install gcc
- name: Install the mingw-w64 package
run: brew install mingw-w64
- name: Test the GCC command
run: gcc --version
- name: Test the i686-w64-mingw32-gcc command
run: i686-w64-mingw32-gcc --version
- name: Test the x86_64-w64-mingw32-gcc command
run: x86_64-w64-mingw32-gcc --version
- name: Clean up
run: brew cleanup
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: cpp
# [END] Set up the environment for macOS
# [START] Delete the executables
- name: Clear the binaries
run: make clean
# [END] Delete the executables
- name: List the project files
run: ls ${{ github.workspace }}/
- name: Build the compiler
run: make run-all
- name: List the project files
run: ls ${{ github.workspace }}/
# [START] Scan code
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
# [END] Scan code
- run: echo "This job's status is ${{ job.status }}."