Skip to content

Commit

Permalink
[ci] Remove useless checkout for linux/mac ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Megane Millan committed Oct 15, 2024
1 parent 448f61a commit ee69fbe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI - Linux via APT

on:
schedule:
- cron: '0 0 * * 0'
- cron: '15 * * * *'
push:
paths-ignore:
- doc/**
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/macos-linux-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI - OSX/Linux via Conda

on:
schedule:
- cron: '0 0 * * 0'
- cron: '15 * * * *'
push:
paths-ignore:
- doc/**
Expand Down Expand Up @@ -68,10 +68,6 @@ jobs:
fetch-depth: 0
submodules: recursive

- uses: actions/checkout@v4
with:
submodules: recursive

- uses: actions/cache@v4
with:
path: .ccache
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/scripts/get_compilation_flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ module.exports = async ({github, context, core}) => {

const prNumber = context.issue.number || getPullRequestNumber(context.ref);

let cmakeFlags = '';// get os process is run on
let cmakeFlags = '';
// get os process is run on
const os = process.env.RUNNER_OS;
var labelFlags;
console.log("os ", os);
if(os == "Windows")
{
labelFlags = {
Expand Down Expand Up @@ -65,6 +67,7 @@ module.exports = async ({github, context, core}) => {

// Get the GitHub event name that triggered the workflow
const eventName = process.env.GITHUB_EVENT_NAME;
console.log("event ", eventName);
if (eventName == "schedule")
{
cmakeFlags += labelFlags['build_all'].join(' ');
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-conda.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI - Windows via Conda
on:
schedule:
- cron: '0 0 * * 0'
- cron: '15 * * * *'
push:
paths-ignore:
- doc/**
Expand Down

0 comments on commit ee69fbe

Please sign in to comment.