Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
build: add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolLoong committed Dec 13, 2023
1 parent c95a138 commit cec8ed1
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
on:
push:
branches:
- master
- workflow
paths:
- .github/workflows/build.yml
- scripts/localbdslibrary.lua
- src/**
- xmake.lua
pull_request:
branches:
- master
paths:
- .github/workflows/build.yml
- scripts/localbdslibrary.lua
- src/**
- xmake.lua
workflow_dispatch:

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- uses: xmake-io/github-action-setup-xmake@v1

- uses: actions/cache@v3
with:
path: |
~/AppData/Local/.xmake
.xmake
key: xmake-dataextractor-windows-x64-${{ github.sha }}
restore-keys: |
xmake-dataextractor-windows-x64-
- run: |
xmake repo -u
- run: |
xmake f -a x64 -m release -p windows -v -y --ccache=n
- run: |
xmake -w -y
- uses: actions/upload-artifact@v3
with:
name: DataExtractor-Windows-X64-${{ github.sha }}
path: |
build/windows/x64/release/DataExtractor.dll
build/windows/x64/release/DataExtractor.pdb

0 comments on commit cec8ed1

Please sign in to comment.