Merge pull request #316 from gudnimg/update-github-actions
CI: Call `sudo apt-get update` and update `cache`, `checkout` actionspull/317/head
commit
1c0c732291
|
|
@ -15,25 +15,26 @@ jobs:
|
||||||
# setup base required dependencies
|
# setup base required dependencies
|
||||||
- name: Setup dependencies
|
- name: Setup dependencies
|
||||||
run: |
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
sudo apt-get install cmake ninja-build python3-pyelftools python3-regex python3-polib
|
sudo apt-get install cmake ninja-build python3-pyelftools python3-regex python3-polib
|
||||||
|
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- name: Checkout ${{ github.event.pull_request.head.ref }}
|
- name: Checkout ${{ github.event.pull_request.head.ref }}
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
if: ${{ github.event.pull_request }}
|
if: ${{ github.event.pull_request }}
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Checkout ${{ github.event.ref }}
|
- name: Checkout ${{ github.event.ref }}
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
if: ${{ !github.event.pull_request }}
|
if: ${{ !github.event.pull_request }}
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.ref }}
|
ref: ${{ github.event.ref }}
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Cache Dependencies
|
- name: Cache Dependencies
|
||||||
uses: actions/cache@v3.0.11
|
uses: actions/cache@v4.0.0
|
||||||
id: cache-pkgs
|
id: cache-pkgs
|
||||||
with:
|
with:
|
||||||
path: ".dependencies"
|
path: ".dependencies"
|
||||||
|
|
@ -71,25 +72,26 @@ jobs:
|
||||||
# setup base required dependencies
|
# setup base required dependencies
|
||||||
- name: Setup dependencies
|
- name: Setup dependencies
|
||||||
run: |
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
sudo apt-get install gcc-11 g++11 lcov cmake ninja-build python3-pyelftools python3-regex python3-polib
|
sudo apt-get install gcc-11 g++11 lcov cmake ninja-build python3-pyelftools python3-regex python3-polib
|
||||||
|
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- name: Checkout ${{ github.event.pull_request.head.ref }}
|
- name: Checkout ${{ github.event.pull_request.head.ref }}
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
if: ${{ github.event.pull_request }}
|
if: ${{ github.event.pull_request }}
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Checkout ${{ github.event.ref }}
|
- name: Checkout ${{ github.event.ref }}
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
if: ${{ !github.event.pull_request }}
|
if: ${{ !github.event.pull_request }}
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.ref }}
|
ref: ${{ github.event.ref }}
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Cache Dependencies
|
- name: Cache Dependencies
|
||||||
uses: actions/cache@v3.0.11
|
uses: actions/cache@v4.0.0
|
||||||
id: cache-pkgs
|
id: cache-pkgs
|
||||||
with:
|
with:
|
||||||
path: ".dependencies"
|
path: ".dependencies"
|
||||||
|
|
|
||||||
|
|
@ -18,14 +18,15 @@ jobs:
|
||||||
# setup base required dependencies
|
# setup base required dependencies
|
||||||
- name: Setup dependencies
|
- name: Setup dependencies
|
||||||
run: |
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
sudo apt-get install cmake ninja-build python3-pyelftools python3-regex python3-polib
|
sudo apt-get install cmake ninja-build python3-pyelftools python3-regex python3-polib
|
||||||
|
|
||||||
# build the base branch
|
# build the base branch
|
||||||
- name: Checkout base
|
- name: Checkout base
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Cache Dependencies
|
- name: Cache Dependencies
|
||||||
uses: actions/cache@v3.0.11
|
uses: actions/cache@v4.0.0
|
||||||
id: cache-pkgs
|
id: cache-pkgs
|
||||||
with:
|
with:
|
||||||
path: ".dependencies"
|
path: ".dependencies"
|
||||||
|
|
@ -53,7 +54,7 @@ jobs:
|
||||||
|
|
||||||
# build the PR branch
|
# build the PR branch
|
||||||
- name: Checkout PR
|
- name: Checkout PR
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
clean: false
|
clean: false
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue