Skip to content

Commit

Permalink
feat: add windows-latest runner
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Mar 8, 2024
1 parent c771e71 commit 0581613
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/build-win-latest-x86_64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Build win-latest-x86_64 dependencies

on:
workflow_dispatch:
workflow_run:
workflows: ["Build win32-x86_64 dependencies"]
branches: [main]
types:
- completed

# Prevent concurrent auto-commits
concurrency:
group: auto-commit-win-latest-x86_64
cancel-in-progress: true

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Install C/C++ Compiler
uses: rlalik/setup-cpp-compiler@master
with:
compiler: clang-latest
- name: Install MSVC Compiler Toolchain
uses: ilammy/msvc-dev-cmd@v1
- name: Install Rust Toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install Lua
uses: leso-kn/gh-actions-lua@master
with:
luaVersion: "5.1"
- name: Install Luarocks
uses: hishamhm/gh-actions-luarocks@master
with:
luarocksVersion: "3.11.0"
- name: Print environment
run: |
printenv
- name: Install `fzy` Package
run: |
luarocks --verbose --local --lua-version=5.1 install fzy
luarocks --verbose pack fzy
if: always()
- name: Install `luarocks-build-rust-mlua` Package
run: |
luarocks --verbose --local --lua-version=5.1 install luarocks-build-rust-mlua
luarocks --verbose pack luarocks-build-rust-mlua
if: always()
- name: Install TOML Package
run: |
luarocks --verbose --local --lua-version=5.1 install toml
luarocks --verbose pack toml
if: always()
- name: Install `toml-edit` Package
run: |
luarocks --verbose --local --lua-version=5.1 install toml-edit
luarocks --verbose pack toml-edit
if: always()
- name: Regenerate Manifests and HTML
run: luarocks-admin make-manifest --lua-version=5.1 .
if: always()
- name: commit-win-latest-x86_64
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update win-latest-x86_64 build artifacts"
file_pattern: "*.rock manifest* index.html"
if: always()

0 comments on commit 0581613

Please sign in to comment.