Skip to content

Commit 97646bc

Browse files
committed
github actions
move to version 1.3.0
1 parent c7384a3 commit 97646bc

16 files changed

Lines changed: 124 additions & 469 deletions

.github/workflows/build.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
on:
2+
push:
3+
tags:
4+
- "v*"
5+
# should we prevent main branch build?
6+
# warning about tag variable when not a tag push,
7+
# devsim_win64_refs/heads/r2.9.2
8+
#branches:
9+
# - "r2.9.2"
10+
11+
#TODO: handle common code in build steps
12+
13+
jobs:
14+
create_release_tag:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v5
19+
with:
20+
submodules: false
21+
- name: Create Release
22+
env:
23+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Use the default GITHUB_TOKEN
24+
run: |
25+
TAG=${GITHUB_REF#refs/tags/} # Extract the tag name from the ref
26+
gh release create "$TAG" \
27+
--prerelease \
28+
--title "Release $TAG" \
29+
--notes "Automated release for $TAG." \
30+
--generate-notes # Automatically generate release notes based on commits
31+
echo "Release $TAG created successfully."
32+
build_windows:
33+
if: true
34+
name: Build on Windows
35+
runs-on: windows-2025
36+
needs: create_release_tag
37+
steps:
38+
- name: set git crlf
39+
run: git config --global core.autocrlf input
40+
- name: Set tags and variables
41+
shell: bash
42+
run: |
43+
TAG=${GITHUB_REF#refs/tags/}
44+
echo "TAG=$TAG" >> $GITHUB_ENV
45+
echo "README_BASE_URL=https://github.com/devsim/symdiff/blob/${TAG}" >> $GITHUB_ENV
46+
echo "PLATFORM=x64" >> $GITHUB_ENV
47+
echo "CONDA_BIN=${CONDA}\\condabin\\conda.bat" >> $GITHUB_ENV
48+
- name: Checkout repository
49+
uses: actions/checkout@v5
50+
with:
51+
submodules: false
52+
- name: compilation
53+
shell: cmd
54+
run: |
55+
scripts\build_appveyor.bat %PLATFORM% %CONDA_BIN%
56+
- name: Upload Release Asset ${{ runner.os }} ${{ runner.arch }}
57+
shell: bash
58+
env:
59+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
run: |
61+
gh release upload "$TAG" *.whl
62+
echo "Asset uploaded to release $TAG."
63+
build_linux:
64+
if: true
65+
name: Build on Linux or macOS
66+
needs: create_release_tag
67+
strategy:
68+
matrix:
69+
os: [ubuntu-24.04, ubuntu-24.04-arm, macos-14]
70+
runs-on: ${{matrix.os}}
71+
steps:
72+
- name: Checkout repository
73+
uses: actions/checkout@v5
74+
with:
75+
submodules: false
76+
- name: Set tag
77+
run: |
78+
TAG=${GITHUB_REF#refs/tags/}
79+
echo "TAG=$TAG" >> $GITHUB_ENV
80+
echo "README_BASE_URL=https://github.com/devsim/symdiff/blob/${TAG}" >> $GITHUB_ENV
81+
- name: build ${{ runner.os }} ${{ runner.arch }}
82+
run: |
83+
if [ "$RUNNER_OS" == "Linux" ]; then
84+
bash ./scripts/build_docker_manylinux_2_28.sh ${TAG};
85+
elif [ "$RUNNER_OS" == "macOS" ]; then
86+
bash ./scripts/build_macos.sh ${TAG};
87+
else
88+
echo "$RUNNER_OS not supported"
89+
exit 1
90+
fi
91+
- name: Upload Release Asset ${{ runner.os }} ${{ runner.arch }}
92+
env:
93+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94+
run: |
95+
gh release upload "$TAG" *.whl
96+
echo "Asset uploaded to release $TAG."

.github/workflows/hello.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 85 deletions
This file was deleted.

CHANGES.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
# 1.2.11
1+
# 1.3.0
22

3+
Update to minimum Python 3.9.
4+
5+
# 1.2.12
36
Drop support for `x86_64` on `macOS`.
47

58
# 1.2.10

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PROJECT (SYMDIFF CXX)
2-
cmake_minimum_required(VERSION 3.9)
2+
cmake_minimum_required(VERSION 3.10)
33

44
OPTION(TCLMAIN "Build with TCL Interpreter" ON)
55
OPTION(PYTHON3 "Build Python 3 Interpreter" ON)
@@ -19,8 +19,8 @@ SET (SUBDIRS
1919
# superlu stuff
2020
SITE_NAME(HOSTNAME)
2121
MESSAGE("Hostname: ${HOSTNAME}")
22-
ADD_DEFINITIONS(-DSYMDIFF_VERSION_STRING=\"1.2.10\")
23-
ADD_DEFINITIONS(-DSYMDIFF_COPYRIGHT_YEAR=\"2010-2024\")
22+
ADD_DEFINITIONS(-DSYMDIFF_VERSION_STRING=\"1.3.0\")
23+
ADD_DEFINITIONS(-DSYMDIFF_COPYRIGHT_YEAR=\"2010-2025\")
2424
2525
IF (COPY_PROJECT_DIR)
2626
set(PROJECT_BIN_DIR ${COPY_PROJECT_DIR}/bin)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
[![Build Status](https://app.travis-ci.com/devsim/symdiff.svg?branch=main)](https://app.travis-ci.com/devsim/symdiff)
3-
[![Build status](https://ci.appveyor.com/api/projects/status/github/devsim/symdiff?branch=main&svg=true)](https://ci.appveyor.com/project/devsim/symdiff)
2+
[![PyPI](https://img.shields.io/pypi/v/symdiff)](https://pypi.org/project/symdiff/)
3+
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
44

55
# SYMDIFF
66

0 commit comments

Comments
 (0)