-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from ianichitei/master
Update workflows
- Loading branch information
Showing
3 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,8 +28,13 @@ jobs: | |
|
||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
attestations: write | ||
id-token: write | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Build all | ||
run: | | ||
mkdir build | ||
|
@@ -57,6 +62,14 @@ jobs: | |
cd build | ||
sudo make package | ||
cd - | ||
- name: Attest Build Provenance | ||
if: ${{ github.event_name == 'release' }} | ||
uses: actions/[email protected] | ||
with: | ||
subject-path: | | ||
build/disasmtool/disasmtool | ||
build/*.a | ||
build/*.deb | ||
- name: Release | ||
if: ${{ github.event_name == 'release' }} | ||
uses: AButler/[email protected] | ||
|
@@ -68,10 +81,15 @@ jobs: | |
|
||
runs-on: windows-latest | ||
|
||
permissions: | ||
attestations: write | ||
id-token: write | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Add msbuild to PATH | ||
uses: microsoft/setup-msbuild@v1.3 | ||
uses: microsoft/setup-msbuild@v2 | ||
- name: Setup Windows SDK | ||
uses: fbactions/setup-winsdk@v1 | ||
with: | ||
|
@@ -91,6 +109,13 @@ jobs: | |
del bin\Win32\Release\*.ipdb | ||
tar.exe -acf x64-windows-release.zip bin\x64\Release | ||
tar.exe -acf x86-windows-release.zip bin\Win32\Release | ||
- name: Attest Build Provenance | ||
if: ${{ github.event_name == 'release' }} | ||
uses: actions/[email protected] | ||
with: | ||
subject-path: | | ||
bin\**\Release\* | ||
*-windows-release.zip | ||
- name: Release | ||
if: ${{ github.event_name == 'release' }} | ||
uses: AButler/[email protected] | ||
|
@@ -104,9 +129,9 @@ jobs: | |
|
||
permissions: read-all | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Add msbuild to PATH | ||
uses: microsoft/setup-msbuild@v1.3 | ||
uses: microsoft/setup-msbuild@v2 | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
- uses: seanmiddleditch/gha-setup-ninja@master | ||
- name: Build all | ||
|
@@ -122,7 +147,7 @@ jobs: | |
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Build all | ||
run: | | ||
mkdir build | ||
|
@@ -137,7 +162,7 @@ jobs: | |
|
||
permissions: read-all | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Install cppcheck | ||
run: sudo apt install -y cppcheck | ||
- name: Run cppcheck | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters