Skip to content

Commit

Permalink
update gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gagolews committed Nov 5, 2023
1 parent bda7504 commit 264e01b
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 34 deletions.
20 changes: 15 additions & 5 deletions .devel/sphinx/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@ Hopefully, they can be resolved with the help of this short manual.
Below we also describe some available build process tweaks.


> To get the most out of stringi, you are strongly encouraged to rely
> on our custom ICU4C 74.1 bundle by calling:
>
> ```r
> install.packages("stringi", configure.args="--disable-pkg-config")
> ```
>
> This ensures maximum portability across all platforms
> (Windows and macOS users fetch the pre-compiled binaries
> from CRAN built precisely this way).
## ICU4C
The stringi package depends on the ICU4C >= 61 library.
Expand All @@ -35,11 +50,6 @@ if we install the package from sources and one of the following is true:
`install.packages("stringi", configure.args="--disable-pkg-config")`
is executed.
> Actually, to get the most out of stringi, you are strongly encouraged to rely
> on our ICU4C bundle. This ensures maximum portability across all platforms
> (Windows and macOS users fetch the pre-compiled binaries
> from CRAN built precisely this way).
## Customising the Build Process
Expand Down
12 changes: 6 additions & 6 deletions .devel/sphinx/news.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@


* [NEW FEATURE] TODO.... #469: `stri_datetime_parse` .. new argument -
`default_time`
a Calendar set on input to the date and time to be used for missing values in the date/time string being parsed
`default_time` a Calendar set on input to the date and time to be used
for missing values in the date/time string being parsed

* [BUGFIX] TODO.... #469: `stri_datetime_parse` did not reset the `Calendar` object
when parsing multiple dates.
* [BUGFIX] TODO.... #469: `stri_datetime_parse` did not reset the `Calendar`
object when parsing multiple dates.

* [NEW FEATURE] TODO... #476 U_USING_DEFAULT_ERROR on unknown locales

Expand All @@ -33,7 +33,7 @@

## 1.7.12 (2023-01-09)

* [BUGFIX] Fixed some potential problems reported by `rchk`.
* [BUGFIX] Fixed a few issues reported by `rchk`.

* [NOTE] [BACKWARD INCOMPATIBLE CHANGE IF ICU >= 72]
If building against ICU >= 72, note a backward incompatible change:
Expand All @@ -47,7 +47,7 @@
the *Journal of Statistical Software*;
see <https://doi.org/10.18637/jss.v103.i02>.

* [BUGFIX] #473, #397: Fixed buffer overflow in `stri_dup`.
* [BUGFIX] #473, #397: Fixed buffer overflow in `stri_dup`; Also,
`stri_dup`, `stri_paste`, ... fail more graciously on attempts to
generate strings of length >= 2^31 each.

Expand Down
4 changes: 2 additions & 2 deletions .devel/sphinx/rapi/stri_datetime_add.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ print(x)
```

```
## [1] "2024-01-05 14:22:31 AEDT"
## [1] "2024-01-05 14:58:29 AEDT"
```

```r
stri_datetime_add(x, -2, units='months')
```

```
## [1] "2023-11-05 14:22:31 AEDT"
## [1] "2023-11-05 14:58:29 AEDT"
```

```r
Expand Down
4 changes: 2 additions & 2 deletions .devel/sphinx/rapi/stri_datetime_fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ stri_datetime_fields(stri_datetime_now())

```
## Year Month Day Hour Minute Second Millisecond WeekOfYear WeekOfMonth
## 1 2023 11 5 14 22 31 945 45 1
## 1 2023 11 5 14 58 29 415 45 1
## DayOfYear DayOfWeek Hour12 AmPm Era
## 1 309 1 2 2 2
```
Expand All @@ -88,7 +88,7 @@ stri_datetime_fields(stri_datetime_now(), locale='@calendar=hebrew')

```
## Year Month Day Hour Minute Second Millisecond WeekOfYear WeekOfMonth
## 1 5784 2 21 14 22 31 950 8 3
## 1 5784 2 21 14 58 29 420 8 3
## DayOfYear DayOfWeek Hour12 AmPm Era
## 1 51 1 2 2 1
```
Expand Down
8 changes: 4 additions & 4 deletions .devel/sphinx/rapi/stri_datetime_format.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,15 @@ stri_datetime_parse(x, 'yyyy-MM-dd')
```

```
## [1] "2015-02-28 14:22:32 AEDT" NA
## [1] "2015-02-28 14:58:29 AEDT" NA
```

```r
stri_datetime_parse(x, 'yyyy-MM-dd', lenient=TRUE)
```

```
## [1] "2015-02-28 14:22:32 AEDT" "2015-03-01 14:22:32 AEDT"
## [1] "2015-02-28 14:58:29 AEDT" "2015-03-01 14:58:29 AEDT"
```

```r
Expand All @@ -213,13 +213,13 @@ stri_datetime_parse('19 lipca 2015', 'date_long', locale='pl_PL')
```

```
## [1] "2015-07-19 14:22:32 AEST"
## [1] "2015-07-19 14:58:29 AEST"
```

```r
stri_datetime_format(stri_datetime_now(), 'datetime_relative_medium')
```

```
## [1] "today, 2:22:32 pm"
## [1] "today, 2:58:29 pm"
```
4 changes: 2 additions & 2 deletions .devel/sphinx/rapi/stri_sprintf.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ stri_sprintf("UNIX time %1$f is %1$s.", Sys.time())
```

```
## [1] "UNIX time 1699154561.661119 is 2023-11-05 14:22:41.661119."
## [1] "UNIX time 1699156720.181697 is 2023-11-05 14:58:40.181697."
```

```r
Expand All @@ -213,7 +213,7 @@ stri_sprintf("%1$s is %1$f UNIX time.", Sys.time()) # re-coercion needed
```

```
## [1] "2023-11-05 14:22:41.662826 is 1699154561.662826 UNIX time."
## [1] "2023-11-05 14:58:40.183604 is 1699156720.183604 UNIX time."
```

```r
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/r-icu-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
run: |
sudo apt-get update -qq
# https://cran.r-project.org/bin/linux/ubuntu/
sudo echo "pl_PL.UTF-8" >> /etc/locale.gen
sudo locale-gen
sudo apt install --no-install-recommends software-properties-common dirmngr
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
Expand All @@ -29,5 +27,3 @@ jobs:
- name: Test stringi
run: |
Rscript -e 'source(".devel/tinytest.R")'
LC_ALL="pl_PL.UTF-8" Rscript -e 'source(".devel/tinytest.R")'
LC_ALL="C" Rscript -e 'source(".devel/tinytest.R")'
4 changes: 0 additions & 4 deletions .github/workflows/r-icu-system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
run: |
sudo apt-get update
sudo apt-get -y upgrade
sudo echo "pl_PL.UTF-8" >> /etc/locale.gen
sudo locale-gen
sudo apt-get -y install libcurl4-openssl-dev r-base-dev devscripts libicu-dev language-pack-pl
sudo Rscript -e "install.packages(c('tinytest', 'Rcpp'))"
- name: Install stringi
Expand All @@ -35,5 +33,3 @@ jobs:
- name: Test stringi
run: |
Rscript -e 'source(".devel/tinytest.R")'
LC_ALL="pl_PL.UTF-8" Rscript -e 'source(".devel/tinytest.R")'
LC_ALL="C" Rscript -e 'source(".devel/tinytest.R")'
20 changes: 15 additions & 5 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@ Hopefully, they can be resolved with the help of this short manual.
Below we also describe some available build process tweaks.


> To get the most out of stringi, you are strongly encouraged to rely
> on our custom ICU4C 74.1 bundle by calling:
>
> ```r
> install.packages("stringi", configure.args="--disable-pkg-config")
> ```
>
> This ensures maximum portability across all platforms
> (Windows and macOS users fetch the pre-compiled binaries
> from CRAN built precisely this way).





## ICU4C

The stringi package depends on the ICU4C >= 61 library.
Expand All @@ -35,11 +50,6 @@ if we install the package from sources and one of the following is true:
`install.packages("stringi", configure.args="--disable-pkg-config")`
is executed.

> Actually, to get the most out of stringi, you are strongly encouraged to rely
> on our ICU4C bundle. This ensures maximum portability across all platforms
> (Windows and macOS users fetch the pre-compiled binaries
> from CRAN built precisely this way).



## Customising the Build Process
Expand Down

0 comments on commit 264e01b

Please sign in to comment.