Setup workflows for forgejo
Some checks failed
Build docker images / build (push) Failing after 1m36s

This commit is contained in:
Ethan O'Brien 2024-07-21 15:46:49 -05:00
parent 5c3b8e936c
commit 17a723a904
2 changed files with 7 additions and 70 deletions

View file

@ -1,20 +1,11 @@
# GitHub actions workflow which builds and publishes the docker images.
name: Build docker images
on:
push:
tags: ["v*"]
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
packages: write
id-token: write # needed for signing the images with GitHub OIDC Token
jobs:
build:
if: github.repository == 'ethanaobrien/ew'
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
@ -27,18 +18,7 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@v3
- name: Inspect builder
run: docker buildx inspect
- name: Install Cosign
uses: sigstore/cosign-installer@v3.5.0
- name: Checkout repository
uses: actions/checkout@v4
- name: Extract version from Cargo.toml
# Note: explicitly requesting bash will mean bash is invoked with `-eo pipefail`, see
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
shell: bash
run: |
echo "EW_VERSION=$(grep "^version" Cargo.toml | sed -E 's/version\s*=\s*["]([^"]*)["]/\1/')" >> $GITHUB_ENV

View file

@ -13,9 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
@ -51,10 +48,6 @@ jobs:
os: [ubuntu-latest]
arch: [aarch64]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
@ -82,39 +75,3 @@ jobs:
with:
name: Linux_aarch64
path: target/release/ew
build-windows:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies and build webui
run: |
cd webui
npm install
npm run build
cd ..
rustup target add x86_64-pc-windows-msvc
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Build Rust project for Windows
run: cargo build --release --target x86_64-pc-windows-msvc
- name: Archive production artifacts for Windows
uses: actions/upload-artifact@v3
with:
name: Windows_x86_64
path: target\x86_64-pc-windows-msvc\release\ew.exe