Skip to content

Commit

Permalink
use new action runners
Browse files Browse the repository at this point in the history
Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
  • Loading branch information
thehajime committed Jul 11, 2024
1 parent 6322ee2 commit ab15c97
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
arch: amd64
os_alias: linux
arch_alias: amd64
runs_on: ubuntu-18.04
runs_on: ubuntu-24.04
cc: clang
cxx: clang++
rumprun_tuple: x86_64-rumprun-linux
Expand All @@ -56,7 +56,7 @@ jobs:
arch: amd64
os_alias: osx
arch_alias: amd64
runs_on: macos-11
runs_on: macos-12
cc: clang
cxx: clang++
rumprun_tuple: x86_64-rumprun-linux
Expand All @@ -65,7 +65,7 @@ jobs:
arch: arm32
os_alias: linux
arch_alias: armhf
runs_on: ubuntu-18.04
runs_on: ubuntu-24.04
cc: arm-linux-gnueabihf-gcc
cxx: g++
rumprun_tuple: arm-rumprun-linux
Expand All @@ -74,7 +74,7 @@ jobs:
arch: arm64
os_alias: linux
arch_alias: arm64
runs_on: ubuntu-18.04
runs_on: ubuntu-24.04
cc: aarch64-linux-gnu-gcc
cxx: g++
rumprun_tuple: aarch64-rumprun-linux
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: src/rumprun-packages
submodules: true
Expand Down Expand Up @@ -140,15 +140,15 @@ jobs:
echo "/usr/lib/ccache/bin:/usr/lib/ccache:/usr/local/opt/ccache/libexec:$HOME/.local/bin:/opt/rump/bin:${{ github.workspace }}/bin" >> $GITHUB_PATH
echo "export PATH=/usr/lib/ccache/bin:/usr/lib/ccache:/usr/local/opt/ccache/libexec:$HOME/.local/bin:/opt/rump/bin:${{ github.workspace }}/bin:$PATH" >> $HOME/.bashrc
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: ${{ runner.os }}-${{ matrix.arch }}-${{ matrix.package }}-ccache-build-${{ github.sha }}
restore-keys: ${{ runner.os }}-${{ matrix.arch }}-${{ matrix.package }}-ccache-build-

- name: pkg dependency
run: |
pip install yamlish
pip install yamlish --break-system-packages
- name: pkg dependency (linux)
if: runner.os == 'linux'
Expand Down Expand Up @@ -187,46 +187,46 @@ jobs:
- name: upload artifact
if: matrix.package != 'zlib'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.package_alias }}-${{ matrix.os_alias }}-${{ matrix.arch }}
path: |
src/rumprun-packages/${{ matrix.package }}/bin/${{ matrix.package_alias }}
- name: upload artifact (nginx)
if: matrix.package == 'nginx'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: data-${{ matrix.os_alias }}-${{ matrix.arch }}.iso
path: |
src/rumprun-packages/${{ matrix.package }}/images/data.iso
- name: upload artifact (python3)
if: matrix.package == 'python3'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: python-${{ matrix.os_alias }}-${{ matrix.arch }}.iso
path: |
src/rumprun-packages/${{ matrix.package }}/images/python.iso
- name: upload artifact (python3/linux)
if: matrix.package == 'python3' && runner.os == 'linux' && matrix.arch == 'amd64'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: python-${{ matrix.os_alias }}-${{ matrix.arch }}.img
path: |
src/rumprun-packages/${{ matrix.package }}/images/python.img
- name: upload artifact (netperf)
if: matrix.package == 'netperf'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: netserver-${{ matrix.os_alias }}-${{ matrix.arch }}
path: |
src/rumprun-packages/${{ matrix.package }}/bin/netserver
- name: upload artifact (named)
if: matrix.package == 'named' && runner.os == 'linux'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: named-${{ matrix.os_alias }}-${{ matrix.arch }}.img
path: |
Expand All @@ -243,15 +243,15 @@ jobs:
- name: upload artifact (tiny)'
if: matrix.package != 'zlib'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.package_alias }}-${{ matrix.os_alias }}-${{ matrix.arch }}-slim
path: |
src/rumprun-packages/${{ matrix.package }}/bin/${{ matrix.package_alias }}
- name: upload artifact (netperf) (tiny)
if: matrix.package == 'netperf'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: netserver-${{ matrix.os_alias }}-${{ matrix.arch }}-slim
path: |
Expand All @@ -276,7 +276,7 @@ jobs:

docker-image:
needs: build
runs-on: ubuntu-18.04
runs-on: ubuntu-24.04
name: image
if: ${{ github.event_name == 'release' }}
strategy:
Expand All @@ -297,7 +297,7 @@ jobs:
#registry: localhost:5050/
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- uses: actions/download-artifact@v2
with:
path: artifacts
Expand Down Expand Up @@ -426,11 +426,11 @@ jobs:
trigger:
needs: docker-image
runs-on: ubuntu-18.04
runs-on: ubuntu-24.04
name: downstream
if: ${{ github.event_name == 'release' }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set environment variables for image name
Expand Down

0 comments on commit ab15c97

Please sign in to comment.