@@ -98,93 +98,93 @@ jobs:
9898 # Define the sequence of job steps:
9999 steps :
100100
101- # Checkout the repository:
102- - name : ' Checkout repository'
103- # Pin action to full length commit SHA corresponding to v4.1.0
104- uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
101+ # Checkout the repository:
102+ - name : ' Checkout repository'
103+ # Pin action to full length commit SHA corresponding to v4.1.0
104+ uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
105+ with :
106+ # Specify whether to remove untracked files before checking out the repository:
107+ clean : false
108+
109+ # Limit clone depth to the most recent 100 commits:
110+ fetch-depth : 100
111+
112+ # Specify whether to download Git-LFS files:
113+ lfs : false
114+ timeout-minutes : 10
115+
116+ # Initialize CodeQL tools for scanning:
117+ - name : ' Initialize CodeQL'
118+
119+ # FIXME: pin action to full length commit SHA
120+ uses : github/codeql-action/init@v2
105121 with :
106- # Specify whether to remove untracked files before checking out the repository:
107- clean : false
108-
109- # Limit clone depth to the most recent 100 commits:
110- fetch-depth : 100
111-
112- # Specify whether to download Git-LFS files:
113- lfs : false
122+ languages : ${{ matrix.language }}
123+
124+ # Install compilers:
125+ - name : ' Install compilers'
126+ run : |
127+ sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
128+ sudo -E apt-get update -q
129+ sudo -E apt-get -yq --no-install-suggests --no-install-recommends --allow-downgrades --allow-remove-essential --allow-change-held-packages install binutils gcc-9 gcc-9-multilib g++-9 g++-9-multilib gfortran-9 gfortran-9-multilib
130+ mkdir -p $HOME/bin
131+ echo "$HOME/bin" >> $GITHUB_PATH
132+ ln -s /usr/bin/gcc-9 $HOME/bin/gcc
133+ ln -s /usr/bin/g++-9 $HOME/bin/g++
134+ ln -s /usr/bin/gfortran-9 $HOME/bin/gfortran
114135 timeout-minutes : 10
115136
116- # Initialize CodeQL tools for scanning:
117- - name : ' Initialize CodeQL'
118-
119- # FIXME: pin action to full length commit SHA
120- uses : github/codeql-action/init@v2
121- with :
122- languages : ${{ matrix.language }}
123-
124- # Install compilers:
125- - name : ' Install compilers'
126- run : |
127- sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
128- sudo -E apt-get update -q
129- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --allow-downgrades --allow-remove-essential --allow-change-held-packages install binutils gcc-9 gcc-9-multilib g++-9 g++-9-multilib gfortran-9 gfortran-9-multilib
130- mkdir -p $HOME/bin
131- echo "$HOME/bin" >> $GITHUB_PATH
132- ln -s /usr/bin/gcc-9 $HOME/bin/gcc
133- ln -s /usr/bin/g++-9 $HOME/bin/g++
134- ln -s /usr/bin/gfortran-9 $HOME/bin/gfortran
135- timeout-minutes : 10
136-
137- # Install Node.js:
138- - name : ' Install Node.js'
139- # Pin action to full length commit SHA corresponding to v3.8.1
140- uses : actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
141- with :
142- node-version : ' 20' # 'lts/*'
143- timeout-minutes : 5
144-
145- # Print debug info:
146- - name : ' Print debug info'
147- run : |
148- echo 'PATH:'
149- echo $PATH
150- echo ''
151- echo 'gcc:'
152- gcc --version
153- echo ''
154- echo 'g++:'
155- g++ --version
156- echo ''
157- echo 'gfortran:'
158- gfortran --version
159- echo ''
160- echo 'Git:'
161- git --version
162- echo ''
163- echo 'Node.js:'
164- file $(which node)
165- node --version
166- node -p 'process.platform + "@" + process.arch'
167- echo ''
168- echo 'npm:'
169- npm --version
170- npm config get registry
171- timeout-minutes : 2
172-
173- # Install dependencies (accounting for possible network failures, etc, when installing node module dependencies):
174- - name : ' Install dependencies'
175- run : |
176- make install-node-modules || make install-node-modules || make install-node-modules
177- timeout-minutes : 15
178-
179- # Build native add-ons:
180- # - name: 'Build native add-ons'
181- # run: |
182- # make install-node-addons
183-
184- # Perform CodeQL analysis:
185- - name : ' Perform CodeQL Analysis'
186-
187- # FIXME: pin action to full length commit SHA
188- uses : github/codeql-action/analyze@v2
189- with :
190- category : " /language:${{matrix.language}}"
137+ # Install Node.js:
138+ - name : ' Install Node.js'
139+ # Pin action to full length commit SHA corresponding to v3.8.1
140+ uses : actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
141+ with :
142+ node-version : ' 20' # 'lts/*'
143+ timeout-minutes : 5
144+
145+ # Print debug info:
146+ - name : ' Print debug info'
147+ run : |
148+ echo 'PATH:'
149+ echo $PATH
150+ echo ''
151+ echo 'gcc:'
152+ gcc --version
153+ echo ''
154+ echo 'g++:'
155+ g++ --version
156+ echo ''
157+ echo 'gfortran:'
158+ gfortran --version
159+ echo ''
160+ echo 'Git:'
161+ git --version
162+ echo ''
163+ echo 'Node.js:'
164+ file $(which node)
165+ node --version
166+ node -p 'process.platform + "@" + process.arch'
167+ echo ''
168+ echo 'npm:'
169+ npm --version
170+ npm config get registry
171+ timeout-minutes : 2
172+
173+ # Install dependencies (accounting for possible network failures, etc, when installing node module dependencies):
174+ - name : ' Install dependencies'
175+ run : |
176+ make install-node-modules || make install-node-modules || make install-node-modules
177+ timeout-minutes : 15
178+
179+ # Build native add-ons:
180+ # - name: 'Build native add-ons'
181+ # run: |
182+ # make install-node-addons
183+
184+ # Perform CodeQL analysis:
185+ - name : ' Perform CodeQL Analysis'
186+
187+ # FIXME: pin action to full length commit SHA
188+ uses : github/codeql-action/analyze@v2
189+ with :
190+ category : " /language:${{matrix.language}}"
0 commit comments