Skip to content

Commit

Permalink
add github actions to generate artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
rjodinchr committed Nov 2, 2024
1 parent b2aeffd commit 05a048a
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/actions/setup-ninja/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: 'setup-ninja'
description: 'Setup Ninja'
runs:
using: "composite"
steps:
- name: Setup Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Setup MSVC with Ninja
uses: ilammy/msvc-dev-cmd@v1
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
27 changes: 27 additions & 0 deletions .github/workflows/generate_artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Generate windows artifact
on:
push:

jobs:
build:
name: Build windows artifact
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Ninja
uses: ./.github/actions/setup-ninja
- name: Fetch dependencies
run: python3 ./utils/fetch_sources.py --shallow
- name: Make archive
shell: bash
run: |
set -x
bash utils/make_artifact_windows_x64.sh
echo "installdir=$(realpath build-artifact*/clspv-*)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: windows-artifact
path: '${{ env.installdir }}'

0 comments on commit 05a048a

Please sign in to comment.