Skip to content

Commit

Permalink
ci: Use latest RAT release
Browse files Browse the repository at this point in the history
RAT 0.16.1 was released so we no longer need to use snapshots
for SPDX support.
  • Loading branch information
sjanc committed Feb 16, 2024
1 parent 20c55b2 commit 60aab30
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/compliance_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,11 @@ jobs:
- name: Install Dependencies
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y libxml2-utils
mkdir repos
git clone --depth=1 https://github.com/apache/mynewt-core repos/apache-mynewt-core
wget https://repository.apache.org/content/repositories/snapshots/org/apache/rat/apache-rat/maven-metadata.xml -O snapshot.xml
SNAPSHOT=`xmllint --xpath "//latest/text()" snapshot.xml`
wget https://repository.apache.org/content/repositories/snapshots/org/apache/rat/apache-rat/$SNAPSHOT/maven-metadata.xml -O version.xml
VERSION=`xmllint --xpath "//snapshotVersion[1]/value/text()" version.xml`
wget https://repository.apache.org/content/repositories/snapshots/org/apache/rat/apache-rat/$SNAPSHOT/apache-rat-$VERSION.jar -O apache-rat.jar
wget https://dlcdn.apache.org//creadur/apache-rat-0.16.1/apache-rat-0.16.1-bin.tar.gz
tar zxf apache-rat-0.16.1-bin.tar.gz apache-rat-0.16.1/apache-rat-0.16.1.jar
mv apache-rat-0.16.1/apache-rat-0.16.1.jar apache-rat.jar
- name: check licensing
shell: bash
run: |
Expand Down

0 comments on commit 60aab30

Please sign in to comment.