-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial github workflow file for building
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_windows: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Setup MSYS2 | ||
uses: msys2/setup-msys2@v2 | ||
|
||
- name: Checkout jcal | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'masoudd/jcal' | ||
ref: 'msys2_windows' | ||
path: 'jcal' | ||
|
||
- name: Build jcal | ||
shell: msys2 {0} | ||
run: | | ||
uname -a | ||
cd jcal/sources | ||
bash ./autogen.sh && ./configure && make | ||
- name: Checkout irancal | ||
# disables git line ending conversion | ||
# run: git config --global core.autocrlf input | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build irancal | ||
shell: msys2 {0} | ||
run: | | ||
cd irancal/src | ||
make release |