Skip to content

Commit

Permalink
Update to current master
Browse files Browse the repository at this point in the history
  • Loading branch information
bkstein committed Jan 7, 2025
2 parents e374257 + f8d280b commit 86c5eb3
Show file tree
Hide file tree
Showing 41 changed files with 711 additions and 460 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/tai64_update_leap_seconds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update Leap Seconds
on:
schedule:
- cron: 0 0 * * 1

jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update leap seconds in code
run: |
curl -o leap_seconds_list -L https://data.iana.org/time-zones/data/leap-seconds.list
number=$(grep -v '^#' leap_seconds_list | tail -n1 | awk '{print $2}')
sed -i "s/\(1970-01-01 00:00:\)[0-9]\+ TAI/\1${number} TAI/" tai64/src/lib.rs
sed -i -E 's/(Self\()[0-9]+ \+ \(1 << 62\)\)/\1'"${number}"' + (1 << 62))/' tai64/src/lib.rs
rm leap_seconds_list
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: update leap seconds in tai64
title: Update leap seconds in tai64
body: 'Following this source: https://data.iana.org/time-zones/data/leap-seconds.list, the leap seconds counter has been updated.'
branch: update-leap-seconds
base: master
delete-branch: true
6 changes: 3 additions & 3 deletions .github/workflows/tls_codec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
rust:
- 1.70.0 # MSRV
- 1.74.0 # MSRV
- stable
target:
- wasm32-unknown-unknown
Expand All @@ -50,15 +50,15 @@ jobs:
include:
# 32-bit Linux
- targets: i686-unknown-linux-gnu
rust: 1.70.0 # MSRV
rust: 1.74.0 # MSRV
deps: sudo apt update && sudo apt install gcc-multilib
- targets: i686-unknown-linux-gnu
rust: stable
deps: sudo apt update && sudo apt install gcc-multilib

# 64-bit Linux
- targets: x86_64-unknown-linux-gnu
rust: 1.70.0 # MSRV
rust: 1.74.0 # MSRV
- targets: x86_64-unknown-linux-gnu
rust: stable
steps:
Expand Down
Loading

0 comments on commit 86c5eb3

Please sign in to comment.