Skip to content

Commit 593d679

Browse files
committed
Updated the GitHub workflows and/or the README file to the latest versions.
1 parent d02ffaa commit 593d679

2 files changed

Lines changed: 13 additions & 34 deletions

File tree

‎.github/workflows/R-CMD-check.yaml‎

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# NOTE: This script is a modification of the r-lib/actions standard cehcking script and the public-private sync script, on which it piggybacks to detect when it's in a private repo and can therefore skip some or even all tests. It also builds and uploads binaries for Windows and MacOS.
1+
# NOTE: This script is a modification of the r-lib/actions standard cehcking script and the public-private sync script, on which it piggybacks to detect when it's in a private repo and can therefore skip some or even all tests.
22

33
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
44
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
@@ -17,8 +17,6 @@
1717
# non-forbidden symbol) separated list of flags. Currently
1818
# supported:
1919
#
20-
# binaries: build and upload as an artefact a binary version (particularly for MacOS and Windows).
21-
#
2220
# full: run with ENABLE_statnet_TESTS.
2321
#
2422
# vignettes: build vignettes and manuals; otherwise ignore.
@@ -27,7 +25,11 @@
2725
#
2826
# debug: compile package with -DDEBUG and -UNDEBUG
2927
#
30-
# covr: run in covr mode may be used with 'full' but probably not with others.
28+
# covr: run in covr mode may be used with 'full' but probably not with others
29+
#
30+
# remote: run with remote tests (e.g., version number) enabled
31+
#
32+
# strict: fail on WARNING, not just ERROR; useful for release branches
3133
#
3234
#
3335
# Typical public, private, and release configurations are provided in the variables below.
@@ -41,14 +43,14 @@ env:
4143
PUBLIC: ''
4244
PRIVATE: ''
4345
PUBLIC_CONFIG: '{"config":[
44-
{"os":"windows-latest", "r":"release", "timeout":360, "flags":"binaries"},
45-
{"os":"macOS-latest", "r":"release", "timeout":360, "flags":"binaries, ubsan"},
46+
{"os":"windows-latest", "r":"release", "timeout":360, "flags":""},
47+
{"os":"macOS-latest", "r":"release", "timeout":360, "flags":"ubsan"},
4648
{"os":"ubuntu-latest", "r":"release", "timeout":360, "flags":"full, ubsan, debug"},
4749
{"os":"ubuntu-latest", "r":"devel", "timeout":360, "flags":"vignettes, remote"},
4850
{"os":"ubuntu-latest", "r":"release", "timeout":360, "flags":"full, covr"}]}'
4951
RELEASE_CONFIG: '{"config":[
50-
{"os":"windows-latest", "r":"release", "timeout":360, "flags":"binaries, vignettes, remote, strict"},
51-
{"os":"macOS-latest", "r":"release", "timeout":360, "flags":"binaries, ubsan, vignettes, remote, strict"},
52+
{"os":"windows-latest", "r":"release", "timeout":360, "flags":"vignettes, remote, strict"},
53+
{"os":"macOS-latest", "r":"release", "timeout":360, "flags":"ubsan, vignettes, remote, strict"},
5254
{"os":"ubuntu-latest", "r":"release", "timeout":360, "flags":"full, ubsan, debug, strict"},
5355
{"os":"ubuntu-latest", "r":"devel", "timeout":360, "flags":"vignettes, remote, strict"},
5456
{"os":"ubuntu-latest", "r":"release", "timeout":360, "flags":"full, covr, strict"}]}'
@@ -194,25 +196,6 @@ jobs:
194196
tinytex::tlmgr_install("makeindex")
195197
shell: Rscript {0}
196198

197-
- name: Build
198-
if: contains(matrix.config.flags, 'binaries')
199-
run: |
200-
dir.create("binaries", FALSE)
201-
pkgbuild::build(binary=TRUE, vignettes=FALSE, dest_path = "binaries")
202-
shell: Rscript {0}
203-
204-
- name: Upload build results
205-
if: contains(matrix.config.flags, 'binaries') && !failure()
206-
uses: actions/upload-artifact@v4
207-
with:
208-
name: ${{ runner.os }}-r${{ matrix.config.r }}-binaries
209-
path: binaries
210-
211-
- name: Clean up build results
212-
if: contains(matrix.config.flags, 'binaries')
213-
run: rm -rf binaries
214-
shell: bash
215-
216199
- name: Check
217200
if: contains(matrix.config.flags, 'covr') == false
218201
timeout-minutes: ${{ matrix.config.timeout }}

‎README.md‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![cran version](https://www.r-pkg.org/badges/version/network)](https://cran.r-project.org/package=network)
55
[![Coverage status](https://codecov.io/gh/statnet/network/branch/master/graph/badge.svg)](https://codecov.io/github/statnet/network?branch=master)
66
[![R build status](https://github.com/statnet/network/workflows/R-CMD-check/badge.svg)](https://github.com/statnet/network/actions)
7+
[![R-universe](https://statnet.r-universe.dev/network/badges/version)](https://statnet.r-universe.dev/network)
78

89
Tools to create and modify network objects. The network class can represent a range of relational data types, and supports arbitrary vertex/edge/graph attributes.
910

@@ -15,13 +16,8 @@ To facilitate open development of the package while giving the core developers a
1516

1617
The intention is that all developments in `statnet/network-private` will eventually make their way into `statnet/network` and onto CRAN.
1718

18-
Developers and Contributing Users to the Statnet Project should read https://statnet.github.io/private/ for information about the relationship between the public and the private repository and the workflows involved.
19+
Developers and Contributing Users to the Statnet Project should read https://statnet.org/private/ for information about the relationship between the public and the private repository and the workflows involved.
1920

2021
## Latest Windows and MacOS binaries
2122

22-
A set of binaries is built after every commit to the repository. We strongly encourage testing against them before filing a bug report, as they may contain fixes that have not yet been sent to CRAN. They can be downloaded through the following links:
23-
24-
* [MacOS binary (a `.tgz` file in a `.zip` file)](https://nightly.link/statnet/network/workflows/R-CMD-check.yaml/master/macOS-rrelease-binaries.zip)
25-
* [Windows binary (a `.zip` file in a `.zip` file)](https://nightly.link/statnet/network/workflows/R-CMD-check.yaml/master/Windows-rrelease-binaries.zip)
26-
27-
You will need to extract the MacOS `.tgz` or the Windows `.zip` file from the outer `.zip` file before installing. These binaries are usually built under the latest version of R and their operating system and may not work under other versions.
23+
[R-Universe](https://r-universe.dev) builds a set of binaries after every commit to the main branch of the repository. We strongly encourage testing against them before filing a bug report, as they may contain fixes that have not yet been sent to CRAN. To obtain the binaries from r-universe, navigate to the package page at https://statnet.r-universe.dev/network .

0 commit comments

Comments
 (0)