2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

GitHub Actions Workflow ubuntu-latest が 22.04 に

Last updated at Posted at 2022-11-29

GitHub の Actions を使って ubuntu 用のリリースビルドを作る時、下のような workflow を作ると思いますが、ubuntu-latest が示すバージョンが 20.04 から 22.04 に変更になったようです。

main.yaml
name: Build

on:
  push:
    tags:
      - 'v*'
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - run: sudo apt -y update
      - run: sudo apt -y upgrade
      - run: sudo apt -y install build-essential
以下略

C++ のライブラリを作っていたのですが見事にどハマりしました。

解決策は以下の2つのどちらかだと思います。

  • ubuntu のバージョンを固定する
runs-on: ubuntu-latest
↓
runs-on: ubuntu-20.04
  • 利用側の環境を latest に保つ

使っている人は一応チェックしてみましょう。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?