Skip to content

Commit

Permalink
Shows the build test for each OS.
Browse files Browse the repository at this point in the history
  • Loading branch information
kobayasy committed Jul 9, 2021
1 parent b57e696 commit 4c392f5
Show file tree
Hide file tree
Showing 14 changed files with 80 additions and 50 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
# .github/workflows/build.yml
# Last modified: 29-Jun-2021 (kobayasy)
# Last modified: 10-Jul-2021 (kobayasy)

name: Build
name: Linux

on:
push:
branches:
- master

jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# .github/workflows/build.yml
# Last modified: 10-Jul-2021 (kobayasy)

name: macOS

on:
push:
branches:
- master

jobs:
build:
name: Build
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build and install
run: |
mkdir build
cd build
../src/configure --prefix=$HOME
make install distclean
cd ..
rmdir build
- name: Run
run: |
mkdir -m700 ~/pSync
echo 'psync pSync' > ~/.psync.conf
chmod 600 ~/.psync.conf
~/bin/psync --help
13 changes: 5 additions & 8 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
# .github/workflows/build-windows.yml
# Last modified: 04-Jul-2021 (kobayasy)
# Last modified: 10-Jul-2021 (kobayasy)

name: Build-windows
name: Windows

on:
push:
branches:
- master

jobs:
test:
strategy:
matrix:
os:
- windows-latest
runs-on: ${{ matrix.os }}
build:
name: Build
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# .github/workflows/release.yml
# Last modified: 01-Jul-2021 (kobayasy)
# Last modified: 10-Jul-2021 (kobayasy)

name: Release

Expand All @@ -10,11 +10,8 @@ on:

jobs:
dist:
strategy:
matrix:
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
name: Dist
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
11 changes: 6 additions & 5 deletions README_en.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[[Japanese/日本語](README_ja.md)]

[![Build](https://github.com/kobayasy/pSync/workflows/Build/badge.svg)](https://github.com/kobayasy/pSync/actions/workflows/build.yml)
[![CodeQL](https://github.com/kobayasy/pSync/workflows/CodeQL/badge.svg)](https://github.com/kobayasy/pSync/actions/workflows/codeql-analysis.yml)
[![Linux](https://github.com/kobayasy/pSync/workflows/Linux/badge.svg)](https://github.com/kobayasy/pSync/actions/workflows/build-linux.yml)
[![macOS](https://github.com/kobayasy/pSync/workflows/macOS/badge.svg)](https://github.com/kobayasy/pSync/actions/workflows/build-macos.yml)
[![Windows](https://github.com/kobayasy/pSync/workflows/Windows/badge.svg)](https://github.com/kobayasy/pSync/actions/workflows/build-windows.yml)

<div align="center"><img src="psync.png" alt="pSync"></div>

Expand All @@ -13,9 +14,9 @@ So for this to work, you must be able to login to the sync-host with [OpenSSH].
This work is required for each sync-host include local-host.
1. Do the following to build and install.
```
curl -LOJs https://github.com/kobayasy/pSync/releases/download/2.8/psync-2.8.tar.gz
tar xzf psync-2.8.tar.gz
cd psync-2.8
curl -LOJs https://github.com/kobayasy/pSync/releases/download/2.9/psync-2.9.tar.gz
tar xzf psync-2.9.tar.gz
cd psync-2.9
./configure --prefix=$HOME
make install
```
Expand Down
11 changes: 6 additions & 5 deletions README_ja.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[[英語/English](README_en.md)] [[使い方のヒント](NOTE_ja.md)]

[![Build](https://github.com/kobayasy/pSync/workflows/Build/badge.svg)](https://github.com/kobayasy/pSync/actions/workflows/build.yml)
[![CodeQL](https://github.com/kobayasy/pSync/workflows/CodeQL/badge.svg)](https://github.com/kobayasy/pSync/actions/workflows/codeql-analysis.yml)
[![Linux](https://github.com/kobayasy/pSync/workflows/Linux/badge.svg)](https://github.com/kobayasy/pSync/actions/workflows/build-linux.yml)
[![macOS](https://github.com/kobayasy/pSync/workflows/macOS/badge.svg)](https://github.com/kobayasy/pSync/actions/workflows/build-macos.yml)
[![Windows](https://github.com/kobayasy/pSync/workflows/Windows/badge.svg)](https://github.com/kobayasy/pSync/actions/workflows/build-windows.yml)

<div align="center"><img src="psync.png" alt="pSync"></div>

Expand All @@ -13,9 +14,9 @@
ローカルホストを含めた全ての同期ホストに対してこの作業が必要です。
1. 以下の手順でビルドとインストールを行ないます。
```
curl -LOJs https://github.com/kobayasy/pSync/releases/download/2.8/psync-2.8.tar.gz
tar xzf psync-2.8.tar.gz
cd psync-2.8
curl -LOJs https://github.com/kobayasy/pSync/releases/download/2.9/psync-2.9.tar.gz
tar xzf psync-2.9.tar.gz
cd psync-2.9
./configure --prefix=$HOME
make install
```
Expand Down
Binary file modified psync.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 3 additions & 4 deletions src/Makefile.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# @configure_input@
# Makefile.in - Last modified: 28-Jun-2021 (kobayasy)
# Makefile.in - Last modified: 10-Jul-2021 (kobayasy)
#
# Copyright (c) 2018-2021 by Yuichi Kobayashi <kobayasy@kobayasy.com>
#
Expand All @@ -25,8 +25,8 @@

TARGET = @PACKAGE_TARNAME@@EXEEXT@
OBJS = psync.@OBJEXT@ psync_psp1.@OBJEXT@ popen3.@OBJEXT@ main.@OBJEXT@
MAN1JA = @PACKAGE_TARNAME@.1
MAN5JA = @PACKAGE_TARNAME@.conf.5
MAN1JA = ja/@PACKAGE_TARNAME@.1
MAN5JA = ja/@PACKAGE_TARNAME@.conf.5

prefix = @prefix@
exec_prefix = @exec_prefix@
Expand All @@ -36,7 +36,6 @@ mandir = @mandir@

CC = @CC@
CFLAGS = @CFLAGS@
CFLAGS += -I.
#CFLAGS += -Wall
#CFLAGS += -Wno-shift-count-overflow
#CFLAGS += -Wno-string-plus-int
Expand Down
4 changes: 2 additions & 2 deletions src/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Installation:
This work is required for each sync-host include local-host.
1. Do the following to build and install.
---
tar xzf psync-2.8.tar.gz
cd psync-2.8
tar xzf psync-2.9.tar.gz
cd psync-2.9
./configure --prefix=$HOME
make install
---
Expand Down
5 changes: 5 additions & 0 deletions src/config.h.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* config.h.in. Generated from configure.ac by autoheader. */

#ifndef _INCLUDE_config_h
#define _INCLUDE_config_h

/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H

Expand Down Expand Up @@ -77,3 +80,5 @@

/* Define for large files, on AIX-style hosts. */
#undef _LARGE_FILES

#endif /* #ifndef _INCLUDE_config_h */
21 changes: 12 additions & 9 deletions src/configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for pSync 2.8.
# Generated by GNU Autoconf 2.69 for pSync 2.9.
#
# Report bugs to <kobayasy@kobayasy.com>.
#
Expand Down Expand Up @@ -580,8 +580,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='pSync'
PACKAGE_TARNAME='psync'
PACKAGE_VERSION='2.8'
PACKAGE_STRING='pSync 2.8'
PACKAGE_VERSION='2.9'
PACKAGE_STRING='pSync 2.9'
PACKAGE_BUGREPORT='kobayasy@kobayasy.com'
PACKAGE_URL='http://kobayasy.com/psync/'

Expand Down Expand Up @@ -1242,7 +1242,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures pSync 2.8 to adapt to many kinds of systems.
\`configure' configures pSync 2.9 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
Expand Down Expand Up @@ -1307,7 +1307,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of pSync 2.8:";;
short | recursive ) echo "Configuration of pSync 2.9:";;
esac
cat <<\_ACEOF
Expand Down Expand Up @@ -1394,7 +1394,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
pSync configure 2.8
pSync configure 2.9
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
Expand Down Expand Up @@ -1763,7 +1763,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by pSync $as_me 2.8, which was
It was created by pSync $as_me 2.9, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
Expand Down Expand Up @@ -2962,6 +2962,7 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

as_fn_append CFLAGS ' -I.'
# Find a good install program. We prefer a C program (faster),
# so one script is as good as another. But avoid the broken or
# incompatible versions:
Expand Down Expand Up @@ -4251,6 +4252,8 @@ ac_config_files="$ac_config_files Makefile"

ac_config_headers="$ac_config_headers config.h"



cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
Expand Down Expand Up @@ -4757,7 +4760,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by pSync $as_me 2.8, which was
This file was extended by pSync $as_me 2.9, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -4820,7 +4823,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
pSync config.status 2.8
pSync config.status 2.9
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* main.c - Last modified: 05-Jul-2021 (kobayasy)
/* main.c - Last modified: 10-Jul-2021 (kobayasy)
*
* Copyright (c) 2018-2021 by Yuichi Kobayashi <kobayasy@kobayasy.com>
*
Expand All @@ -24,7 +24,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#else /* #ifdef HAVE_CONFIG_H */
#define PACKAGE_STRING "pSync"
#endif /* #ifdef HAVE_CONFIG_H */
Expand Down

0 comments on commit 4c392f5

Please sign in to comment.