Skip to content

Bump h2 from 0.3.25 to 0.3.26 (#49) #997

Bump h2 from 0.3.25 to 0.3.26 (#49)

Bump h2 from 0.3.25 to 0.3.26 (#49) #997

Workflow file for this run

# SPDX-FileCopyrightText: 2017-2023 Joonas Javanainen <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
name: ci
on:
pull_request:
push:
branches:
- master
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
permissions:
id-token: write
contents: read
jobs:
build:
name: Build site (+ deploy if building master)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Check for unintended local changes (e.g. incorrect use of Git LFS)
run: git diff --exit-code
- name: Install Ubuntu packages
run: sudo apt install libncurses-dev libncursesw5-dev
- name: Install stable toolchain
run: |
rustup toolchain install stable --profile minimal
rustup default stable
- name: Cache dependencies
uses: Swatinem/rust-cache@378c8285a4eaf12899d11bea686a763e906956af
with:
cache-on-failure: true
- name: Build
run: cargo build --all --release
- name: Test
run: cargo test --all --release
- name: Run site generation
run: cargo run --release --bin gbhwdb-site
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
if: github.ref == 'refs/heads/master' && github.repository == 'Gekkio/gb-hardware-db'
with:
aws-region: eu-west-1
role-to-assume: arn:aws:iam::570943329925:role/github-gb-hardware-db
role-session-name: Github-Actions
- name: Run site deployment
if: github.ref == 'refs/heads/master' && github.repository == 'Gekkio/gb-hardware-db'
run: target/release/gbhwdb-deploy