Add experimental CI action for more disk space
Don't use CI action dependencies Bump CI checkout/cache versions
This commit is contained in:
parent
89a84fbbea
commit
a542f3bf67
36
.github/workflows/main.yaml
vendored
36
.github/workflows/main.yaml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: ./src/rust/rust-stream
|
working-directory: ./src/rust/rust-stream
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- name: Setup project
|
- name: Setup project
|
||||||
run: rustup install nightly
|
run: rustup install nightly
|
||||||
- name: Compile project
|
- name: Compile project
|
||||||
@ -33,7 +33,7 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: ./src/java/java-stream
|
working-directory: ./src/java/java-stream
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- name: Test build project
|
- name: Test build project
|
||||||
run: ./mvnw clean package
|
run: ./mvnw clean package
|
||||||
- name: Test run
|
- name: Test run
|
||||||
@ -46,7 +46,7 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: ./src/julia/JuliaStream.jl
|
working-directory: ./src/julia/JuliaStream.jl
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- name: Setup project
|
- name: Setup project
|
||||||
run: julia --project -e 'import Pkg; Pkg.instantiate()'
|
run: julia --project -e 'import Pkg; Pkg.instantiate()'
|
||||||
- name: Test run PlainStream.jl
|
- name: Test run PlainStream.jl
|
||||||
@ -69,38 +69,30 @@ jobs:
|
|||||||
run: julia --project src/AMDGPUStream.jl --list
|
run: julia --project src/AMDGPUStream.jl --list
|
||||||
|
|
||||||
|
|
||||||
setup-cpp:
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- name: Cache compiler
|
|
||||||
# if: ${{ !env.ACT }}
|
|
||||||
id: prepare-compilers
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ./compilers
|
|
||||||
key: ${{ runner.os }}-${{ hashFiles('./src/ci-prepare-bionic.sh') }}
|
|
||||||
|
|
||||||
- name: Prepare compilers
|
|
||||||
if: steps.prepare-compilers.outputs.cache-hit != 'true'
|
|
||||||
run: source ./src/ci-prepare-bionic.sh ./compilers SETUP false || true
|
|
||||||
|
|
||||||
test-cpp:
|
test-cpp:
|
||||||
needs: setup-cpp
|
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Maximize build space
|
||||||
|
uses: easimon/maximize-build-space@v8
|
||||||
|
with:
|
||||||
|
root-reserve-mb: 512
|
||||||
|
swap-size-mb: 1024
|
||||||
|
remove-android: 'true'
|
||||||
|
remove-codeql: 'true'
|
||||||
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Cache compiler
|
- name: Cache compiler
|
||||||
if: ${{ !env.ACT }}
|
if: ${{ !env.ACT }}
|
||||||
id: prepare-compilers
|
id: prepare-compilers
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ./compilers
|
path: ./compilers
|
||||||
key: ${{ runner.os }}-${{ hashFiles('./src/ci-prepare-bionic.sh') }}
|
key: ${{ runner.os }}-${{ hashFiles('./src/ci-prepare-bionic.sh') }}
|
||||||
|
|
||||||
- name: Prepare compilers
|
- name: Prepare compilers
|
||||||
if: steps.prepare-compilers.outputs.cache-hit != 'true'
|
if: steps.prepare-compilers.outputs.cache-hit != 'true'
|
||||||
run: source ./src/ci-prepare-bionic.sh ./compilers SETUP false || true
|
run: source ./src/ci-prepare-bionic.sh ./compilers SETUP true || true
|
||||||
|
|
||||||
- name: Setup test environment
|
- name: Setup test environment
|
||||||
run: source ./src/ci-prepare-bionic.sh ./compilers VARS false || true
|
run: source ./src/ci-prepare-bionic.sh ./compilers VARS false || true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user