Skip to content

Commit

Permalink
Githubactions: Update actions version
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Sep 12, 2024
1 parent c51fe44 commit 9a45c0b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/windows_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install prerequisites
run: |
Expand All @@ -21,13 +21,13 @@ jobs:
set -x
./resources/make_src_dist.sh
cd ..
mkdir artifact
mv $GITHUB_WORKSPACE/yubico-piv-tool-.tar.gz artifact/
mkdir $GITHUB_WORKSPACE/artifact
mv $GITHUB_WORKSPACE/yubico-piv-tool-.tar.gz $GITHUB_WORKSPACE/artifact/
- name: Upload artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: yubico-piv-tool-src
path: ../artifact
path: artifact

build:
name: Build and Test on Windows
Expand All @@ -52,14 +52,13 @@ jobs:

steps:
- name: Download source from source work
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: yubico-piv-tool-src

- name: Extract source
run: |
Set-PSDebug -Trace 1
cd yubico-piv-tool-src
tar xf yubico-piv-tool-.tar.gz
- name: install prerequisites
Expand Down Expand Up @@ -159,14 +158,13 @@ jobs:

steps:
- name: Download source from source work
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: yubico-piv-tool-src

- name: Extract source
run: |
Set-PSDebug -Trace 1
cd yubico-piv-tool-src
tar xf yubico-piv-tool-.tar.gz
- name: install prerequisites
Expand Down
20 changes: 9 additions & 11 deletions .github/workflows/windows_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
RELEASE_VERSION: 2.6.0
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install prerequisites
run: |
Expand All @@ -27,13 +27,13 @@ jobs:
./resources/make_src_dist.sh $RELEASE_VERSION
cd ..
mkdir artifact
mv $GITHUB_WORKSPACE/yubico-piv-tool-$RELEASE_VERSION.tar.gz artifact/
mkdir $GITHUB_WORKSPACE/artifact
mv $GITHUB_WORKSPACE/yubico-piv-tool-$RELEASE_VERSION.tar.gz $GITHUB_WORKSPACE/artifact/
- name: Upload artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: yubico-piv-tool-src
path: ../artifact
path: artifact

job_2:
name: Build Windows x86
Expand All @@ -43,14 +43,13 @@ jobs:
RELEASE_VERSION: 2.6.0
steps:
- name: Download source from job_1
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: yubico-piv-tool-src

- name: Extract source
run: |
Set-PSDebug -Trace 1
cd yubico-piv-tool-src
tar xf yubico-piv-tool-$env:RELEASE_VERSION.tar.gz
- name: Make release binaries
Expand Down Expand Up @@ -86,7 +85,7 @@ jobs:
Start-Sleep -s 5
- name: Upload artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: yubico-piv-tool-win32
path: artifact
Expand All @@ -99,14 +98,13 @@ jobs:
RELEASE_VERSION: 2.6.0
steps:
- name: Download source from job_1
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: yubico-piv-tool-src

- name: Extract source
run: |
Set-PSDebug -Trace 1
cd yubico-piv-tool-src
tar xf yubico-piv-tool-$env:RELEASE_VERSION.tar.gz
- name: Make release binaries
Expand Down Expand Up @@ -141,7 +139,7 @@ jobs:
msiexec /i yubico-piv-tool-$env:RELEASE_VERSION-x64.msi /quiet
- name: Upload artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: yubico-piv-tool-win64
path: artifact

0 comments on commit 9a45c0b

Please sign in to comment.