Skip to content

Commit

Permalink
Merge pull request #264 from StoXProject/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
arnejohannesholmin authored Dec 2, 2022
2 parents 9107e46 + 288447f commit 0e6bd07
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/check-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,18 @@ jobs:
matrix:
config:
- {os: macOS-latest, r: 'release', pkgext: '.tgz'}
- {os: macOS-latest, r: 'oldrel', pkgext: '.tgz'}
- {os: macOS-latest, r: '4.2', pkgext: '.tgz'}
- {os: macOS-latest, r: '4.1', pkgext: '.tgz'}
- {os: macOS-latest, r: '4.0', pkgext: '.tgz'}
- {os: macOS-latest, r: '3.6', pkgext: '.tgz'}
- {os: windows-latest, r: 'release', pkgext: '.zip'}
- {os: windows-latest, r: 'oldrel', pkgext: '.zip'}
- {os: windows-latest, r: '4.2', pkgext: '.zip'}
- {os: windows-latest, r: '4.1', pkgext: '.zip'}
- {os: windows-latest, r: '4.0', pkgext: '.zip', rspm: "https://cloud.r-project.org"}
- {os: windows-latest, r: '3.6', pkgext: '.zip', rspm: "https://cloud.r-project.org"}
- {os: ubuntu-latest, r: 'release', pkgext: '.tar.gz', rspm: "https://cloud.r-project.org"}
- {os: ubuntu-18.04, r: 'oldrel', pkgext: '.tar.gz', rspm: "https://cloud.r-project.org"}
- {os: ubuntu-18.04, r: '4.2', pkgext: '.tar.gz', rspm: "https://cloud.r-project.org"}
- {os: ubuntu-18.04, r: '4.1', pkgext: '.tar.gz', rspm: "https://cloud.r-project.org"}
- {os: ubuntu-18.04, r: '4.0', pkgext: '.tar.gz', rspm: "https://cloud.r-project.org"}
- {os: ubuntu-18.04, r: '3.6', pkgext: '.tar.gz', rspm: "https://cloud.r-project.org"}

Expand Down Expand Up @@ -61,7 +64,7 @@ jobs:
rtools-version: ${{ matrix.config.rtools }}
http-user-agent: ${{ matrix.config.http-user-agent }}

- uses: r-lib/actions/setup-pandoc@v1
- uses: r-lib/actions/setup-pandoc@v2

- name: Query dependencies
run: |
Expand All @@ -72,7 +75,7 @@ jobs:

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ env.cache-version }}-${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('depends.Rds') }}
Expand Down Expand Up @@ -170,16 +173,17 @@ jobs:
# name: ${{ runner.os }}-${{ matrix.config.r }}-pkg
# path: '${{ github.workspace }}/*${{ matrix.config.pkgext }}'

# We include 'release' in order to always test the altest release, but mac and Windows binaries are not deployed to the drat repo:
- name: Upload to DRAT repo
if: (runner.os == 'Windows' || runner.os == 'macOS' || (runner.os == 'Linux' && matrix.config.r == 'release')) && github.event_name == 'push' && github.ref == 'refs/heads/master'
if: ( (runner.os == 'Windows' && matrix.config.r != 'release') || (runner.os == 'macOS' && matrix.config.r != 'release') || (runner.os == 'Linux' && matrix.config.r == 'release') ) && github.event_name == 'push' && github.ref == 'refs/heads/master'
env:
BUILD_NUMBER: ${{ github.sha }}
DRAT_DEPLOY_TOKEN: ${{ secrets.DRAT_DEPLOY_TOKEN }}
run: . deploy.sh
shell: bash

- name: Create release and upload files
if: (runner.os == 'Windows' || runner.os == 'macOS' || (runner.os == 'Linux' && matrix.config.r == 'release')) && github.event_name == 'push' && github.ref == 'refs/heads/master'
if: ( (runner.os == 'Windows' && matrix.config.r != 'release') || (runner.os == 'macOS' && matrix.config.r != 'release') || (runner.os == 'Linux' && matrix.config.r == 'release') ) && github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: ncipollo/release-action@v1
with:
allowUpdates: true
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: RstoxData
Version: 1.8.0-9001
Date: 2022-11-30
Version: 1.8.0-9002
Date: 2022-12-02
Title: Tools to Read and Manipulate Fisheries Data
Authors@R: c(
person(given = "Edvin",
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# RstoxData v1.8.0-9002 (2022-12-02)
* Changed check-full.yaml to run for 'release' and specific R versions (4.2, 4.1, etc).

# RstoxData v1.8.0-9001 (2022-11-30)
* Unified how lengtht code is calculated for ICESBiotic and ICESDatras.
* Added RegroupLengthICESDatras() (replacing PrepareWriteICESDatras()), which regroups the lengths of the HL table of ICESDatras.
Expand Down

0 comments on commit 0e6bd07

Please sign in to comment.